It's funny but I never thought about it either until your email. We can't
guarantee there's a scheduler running... but then again we can't guarantee
a Celery worker is running either, so I think it might be a good
enhancement (along with an informative status message).
On Wed, Jul 6, 2016 at 8:32 PM Maxime Beauchemin <[email protected]>
wrote:

> Oh right, somehow I didn't even think of that. It's a fair assumption that
> there should be a scheduler up.
>
> Max
>
> On Wed, Jul 6, 2016 at 3:12 PM, Jeremiah Lowin <[email protected]> wrote:
>
> > Perhaps it's a good chance to revisit the functionality. Right now the UI
> > "run" button actually runs the task via CeleryExecutor. Perhaps instead
> (or
> > just when using a non-Celery executor) it should queue the task and let
> the
> > Scheduler pick it up. I guess in that case it would just be sugar for
> > marking a TI as QUEUED. Just a thought.
> >
> > On Wed, Jul 6, 2016 at 2:54 AM Maxime Beauchemin <
> > [email protected]>
> > wrote:
> >
> > > Hi,
> > >
> > > The problem is that a web server isn't the right place to run an
> airflow
> > > task. From the context of the web request scope we have to somehow
> pass a
> > > message to an external executor to run the task. For LocalExecutor to
> > work
> > > the web server would have to start a LocalExecutor as a sub process and
> > > that doesn't sound like a great idea...
> > >
> > > Max
> > >
> > > On Tue, Jul 5, 2016 at 11:22 AM, Jason Chen <[email protected]
> >
> > > wrote:
> > >
> > > > Hi Airflow team,
> > > >  I am using the "LocalExecutor" and it works very well to run the
> > > workflow
> > > > I setup.
> > > >
> > > > I noticed that, from the UI, it can trigger a task to run.
> > > > However, I got the error "Only works with the CeleryExecutor, sorry
> ".
> > > > I can ssh into airflow node and run the command line from there.
> > > > However, it would be nice to just run it from airflow UI.
> > > > Is it possible to do that (with "LocalExecutor") or it's a future
> > feature
> > > > to consider ?
> > > >
> > > > Thanks.
> > > > Jason
> > > >
> > >
> >
>

Reply via email to