Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Only works with the CeleryExecutor

Tags:

airflow

I am new at airflow and when i click run 'ignore all dependence' on Task Instance Context Menu like this:

Task Instance Context Menu

It leads to 'Only works with the CeleryExecutor'

I try to Refresh the Web UI but it doesn't work.

(I use LocalExecutor and don't want to use CeleryExecutor)

Why it happened and how can i run a single task ignore all dependence on the Web UI when i use LocalExecutor

like image 901
宋殊同 Avatar asked Jun 09 '17 08:06

宋殊同


People also ask

What is CeleryExecutor?

CeleryExecutor is one of the ways you can scale out the number of workers. For this to work, you need to setup a Celery backend (RabbitMQ, Redis, …) and change your airflow. cfg to point the executor parameter to CeleryExecutor and provide the related Celery settings.

What are the types of executors in Airflow?

There are two types of executor - those that run tasks locally (inside the scheduler process), and those that run their tasks remotely (usually via a pool of workers).

How does Celery Airflow work?

Airflow comes with various executors, but the most widely used among those is Airflow Celery Executor used for scaling out by distributing the workload on multiple Celery workers that can run on different machines. CeleryExecutor works with some workers it has to distribute the tasks with the help of messages.

How does Airflow executor work?

Once the scheduled time arrives, the Airflow scheduler sends the command to the Executor. After received signals from the scheduler, the Executor starts allocating resources and put tasks into the queue. When work is available, it will pick up the tasks from the queue to execute it.


1 Answers

I had a similar problem. Issue was following:

With LocalExecutor you cannot run single task, you could only run the whole DAG at once. Source code

DAG was already in 'success' state.

Possible solution is to change DAG status to running.

like image 161
Mark Lavrynenko Avatar answered Sep 20 '22 16:09

Mark Lavrynenko