Externally Triggered Task

865 views
Skip to first unread message

Sens Critique

unread,
Sep 24, 2015, 2:00:44 PM9/24/15
to Airflow
Hello,

Would it be possible to use Airflow for externally triggered task, either itself or inside an ecosystem.

For example, if an event happens, I want to store it synchronically in MySQL, but then I want to design a task workflow to propagate this data right away in NoSQL databases, increment counters, maybe send an email to the user, etc ..

I was thinking that Airflow could listen to messages on a broker, like RabbitMQ or Kafka. Is it possible and how does it compare to Celery for instance ?

AH

unread,
Sep 24, 2015, 2:58:57 PM9/24/15
to Airflow
Perhaps the ExternalTaskSensor or the SqlSensor  will do what you want? 

You can also have tasks sent out to workers via Celery using airflow.

Maxime Beauchemin

unread,
Sep 24, 2015, 3:17:10 PM9/24/15
to Airflow
We're planning on supporting the CLI features through a REST API, would that work for you? There's also a task param `adhoc` that allows for on demand tasks that can live in your DAG but aren't triggered by the scheduler.

Sens Critique

unread,
Sep 28, 2015, 4:21:34 AM9/28/15
to Airflow
I think I'll try a Celery integration, thanks ! (but yes probably a REST API would be great too)
Reply all
Reply to author
Forward
0 new messages