Skip to content

Commit

Permalink
parsing_loop需要等待所有processor和callback都执行完毕才能退出
Browse files Browse the repository at this point in the history
  • Loading branch information
shinny-taojiachun committed Apr 2, 2024
1 parent e9cceaa commit ed2d3be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions airflow/dag_processing/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,11 @@ def max_runs_reached(self):
return False
if self._num_run < self._max_runs:
return False
# 由于我们只run一次,所以需要在这里确保所有的callback和processors都已经完成
if self._callback_to_execute:
return False
if self._processors:
return False
return True

def terminate(self):
Expand Down

0 comments on commit ed2d3be

Please sign in to comment.