Possibly useful to you is the variable dags_are_paused_at_creation = True you
can set in airflow.cfg or in environment variables to cause the metadata
database to consider all DAGs paused when they are first started up.

I do think I saw something fly by on this dev list that environment
variables for config got written out in the newest version. Not sure if
it's true as I haven't tried to upgrade from 1.7.0 yet... partially for
fear of tearing out our dependence on being able to control other airflow
config with environment variables :)

On Thu, Jun 30, 2016 at 4:59 PM, Tyrone Hinderson <[email protected]>
wrote:

> Hey there Chris,
>
> I agree that's a solid use case--mine is more development-oriented. Rather
> than have all DAGs attempt to run upon scheduler start, a developer
> probably just wants to observe how one DAG behaves. To that end, a
> scheduler startup script can simply pause all DAGs before starting the dev
> instance of the scheduler; then the developer can selectively unpause that
> DAG via the UI or CLI (assuming those two controls are related).
>
> On Thu, Jun 30, 2016 at 4:06 PM Chris Riccomini <[email protected]>
> wrote:
>
> > Hey Tyrone,
> >
> > This would be a useful feature for us as well. Right now, we just turn
> the
> > scheduler off, which is kind of annoying.
> >
> > Use case is when things go really haywire (e.g. 100s of failures per
> > minute), we just want everything to stop.
> >
> > Cheers,
> > Chris
> >
> > On Thu, Jun 30, 2016 at 1:02 PM, Tyrone Hinderson <
> [email protected]>
> > wrote:
> >
> > > Hi, is there a way to "pause" all DAGs via the cli or otherwise?
> > >
> > > In the same vein, does "airflow pause" flip the same state which is
> > flipped
> > > by the on/off button next to each DAG in the UI?
> > >
> >
>

Reply via email to