Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit d113822

Browse files
committed
fix backfill crashing
1 parent cd3be9b commit d113822

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

airflow/jobs/backfill_job.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ def _update_counters(self, ti_status, session=None):
243243
ti,
244244
)
245245
tis_to_be_scheduled.append(ti)
246-
ti_status.running.pop(reduced_key)
246+
try:
247+
ti_status.running.pop(reduced_key)
248+
except KeyError:
249+
# the task is not running
250+
pass
247251
ti_status.to_run[ti.key] = ti
248252

249253
# Batch schedule of task instances

0 commit comments

Comments
 (0)