airflow icon indicating copy to clipboard operation
airflow copied to clipboard

Retry interval much longer than what is set

Open pharoson opened this issue 11 years ago • 4 comments

I have a dag with retry_interval set in the default_args to timedelta(seconds=10). However, when a task failed, it did not retry until 5 minutes and 6 seconds later (according to the logs). Another retried after 5 minutes and 3 seconds.

Is there a workaround for this? Has anyone encountered this before?

pharoson avatar Jul 27 '15 15:07 pharoson

At which interval is your scheduler running? Look for SCHEDULER_HEARTBEAT_SEC in your airflow.cfg

Also, what's your JOB_HEARTBEAT_SEC set to?

mistercrunch avatar Jul 27 '15 17:07 mistercrunch

Both are set to 5 seconds.

pharoson avatar Jul 27 '15 17:07 pharoson

The docs/tutorial wasn't using the right param name: https://github.com/airbnb/airflow/pull/189

Thank you for reporting this!

mistercrunch avatar Jul 27 '15 18:07 mistercrunch

Thanks a bunch!

pharoson avatar Jul 27 '15 19:07 pharoson