You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airflow.apache.org by Ben Schoener <be...@celect.com> on 2017/07/17 14:36:35 UTC

dagrun_timeout not working

I instantiate my dags with a timeout (dagrun_timeout=timedelta(hours=1)), but this doesn't seem to have any effect. My DAGs can run for well over 1 hour without timing out. Is there anything obvious I might be missing here? Has anyone had success using dagrun_timeout? I'm running airflow 1.8.0.


Thanks,

Ben

Re: dagrun_timeout not working

Posted by Bolke de Bruin <bd...@gmail.com>.
Do new tasks get scheduled if the timeout has passed? The way the functionality works is that it sets the DagRun to failed so it will not schedule new tasks, but it will not fail tasks that are currently running.

Bolke

> On 17 Jul 2017, at 16:36, Ben Schoener <be...@celect.com> wrote:
> 
> I instantiate my dags with a timeout (dagrun_timeout=timedelta(hours=1)), but this doesn't seem to have any effect. My DAGs can run for well over 1 hour without timing out. Is there anything obvious I might be missing here? Has anyone had success using dagrun_timeout? I'm running airflow 1.8.0.
> 
> 
> Thanks,
> 
> Ben


Re: dagrun_timeout not working

Posted by Ben Schoener <be...@celectengine.com>.
Good to know, thanks.

Is there a recommended way to get dags to timeout?

Ben

On 2017-07-17 12:18 (-0400), Arthur Purvis <ap...@lumoslabs.com> wrote: 
> dagrun_timeout is one of the many totally broken features that should be
> avoided like the plague.
> 
> On Mon, Jul 17, 2017 at 10:36 AM, Ben Schoener <be...@celect.com> wrote:
> 
> > I instantiate my dags with a timeout (dagrun_timeout=timedelta(hours=1)),
> > but this doesn't seem to have any effect. My DAGs can run for well over 1
> > hour without timing out. Is there anything obvious I might be missing here?
> > Has anyone had success using dagrun_timeout? I'm running airflow 1.8.0.
> >
> >
> > Thanks,
> >
> > Ben
> >
> 

Re: dagrun_timeout not working

Posted by Arthur Purvis <ap...@lumoslabs.com>.
dagrun_timeout is one of the many totally broken features that should be
avoided like the plague.

On Mon, Jul 17, 2017 at 10:36 AM, Ben Schoener <be...@celect.com> wrote:

> I instantiate my dags with a timeout (dagrun_timeout=timedelta(hours=1)),
> but this doesn't seem to have any effect. My DAGs can run for well over 1
> hour without timing out. Is there anything obvious I might be missing here?
> Has anyone had success using dagrun_timeout? I'm running airflow 1.8.0.
>
>
> Thanks,
>
> Ben
>