PowerDataHub/terraform-aws-airflow

Scheduler number of runs

jozsi opened this issue · 5 comments

jozsi commented

Hi,

I noticed that the scheduler has number of runs set to 10.

What was the reason for this? To pick up new DAG files? Cause for that, as far as I understood, dag_dir_list_interval does that automatically every 300 seconds by default.

This flag makes the scheduler process restart after n runs to avoid weird behaviors

jozsi commented

What are those weird behaviors? Do they still happen with the latest version of Airflow?

@jozsi scheduler hanging and not scheduling new tasks, but I don't know If this still happen with the current version

jozsi commented

Ouch, I see a recent comment reporting that the bug still exists in v1.10.4 (dated august 2019; latest is v1.10.7), 3+ years since it has been reported. Hence the workaround is still valid, the only minor drawback could be that it fills up the logs.