mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-26 03:11:34 +01:00
feat: ingestion task streaming feedback
This commit is contained in:
@@ -45,12 +45,12 @@ impl IngestionTask {
|
||||
content: IngestionPayload,
|
||||
user_id: String,
|
||||
db: &SurrealDbClient,
|
||||
) -> Result<(), AppError> {
|
||||
let job = Self::new(content, user_id).await;
|
||||
) -> Result<IngestionTask, AppError> {
|
||||
let task = Self::new(content, user_id).await;
|
||||
|
||||
db.store_item(job).await?;
|
||||
db.store_item(task.clone()).await?;
|
||||
|
||||
Ok(())
|
||||
Ok(task)
|
||||
}
|
||||
|
||||
// Update job status
|
||||
|
||||
Reference in New Issue
Block a user