airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bolke de Bruin <>
Subject Re: Restart scheduler
Date Wed, 13 Sep 2017 14:30:34 GMT
The LocalExecutor if SIGTERMed or started with “num_runs” will finish all running tasks,
before it shuts down. This due to the fact the LocalExecutor runs in process with the scheduler.
It can thus take a while before the scheduler shutdown if you have any long running tasks.

Please note that using “num_runs” is deprecated.


> On 13 Sep 2017, at 16:24, Сёмочкин Максим Викторович <>
> Hi,
> We make the decision to start using Local executor for some our tasks. Can anybody give
me advice about how to it can be gracefully shutdowned?
> I don’t want to re-invent the wheel.
> Of course I have an option to realize the script which can scan database and wait until
the all active tasks will be finished,  but may be someone has a solved this problem already
or may be the Local executor has this functionality out of the box.
> Thanks
> ______________________________
> IP: 11589
> mob: +79150634897
> e-mail: <>
> г. Москва, ул. Воронцовская, д. 1/3, стр. 2, 4-5 этаж, 401

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message