Skip to content

Commit 88b6ee4

Browse files
authored
Count error when there is failure during processing. (#295)
1 parent fca700a commit 88b6ee4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/execution/source_indexer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl SourceIndexingContext {
8787
processing_sem: Arc<Semaphore>,
8888
pool: PgPool,
8989
) {
90-
let process = async move {
90+
let process = async {
9191
let permit = processing_sem.acquire().await?;
9292
let plan = self.flow.get_execution_plan().await?;
9393
let import_op = &plan.import_ops[self.source_idx];
@@ -157,6 +157,7 @@ impl SourceIndexingContext {
157157
anyhow::Ok(())
158158
};
159159
if let Err(e) = process.await {
160+
update_stats.num_errors.inc(1);
160161
error!("{:?}", e.context("Error in processing a source row"));
161162
}
162163
}

0 commit comments

Comments
 (0)