XD-DENG commented on a change in pull request #15112:
URL: https://github.com/apache/airflow/pull/15112#discussion_r605029331
##########
File path: airflow/utils/dag_processing.py
##########
@@ -696,11 +706,20 @@ def _run_parsing_loop(self):
max_runs_reached = self.max_runs_reached()
dag_parsing_stat = DagParsingStat(
- self._file_paths,
+ len(self._file_paths),
max_runs_reached,
all_files_processed,
)
- self._signal_conn.send(dag_parsing_stat)
+ try:
+ self._signal_conn.send(dag_parsing_stat)
Review comment:
I'm not sure: does applying a timeout context here makes sense?
The reason is it may try to send and get stuck but not fail explicitly. So
to make it fail after specific timeout time may help.
May be a dumb question.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]