For more information on how the SequentialExecutor works, take a look at the guide: Sequential Executor
This executor will only run one task instance at a time, can be used
- class airflow.executors.sequential_executor.SequentialExecutor[source]¶
This executor will only run one task instance at a time, can be used for debugging. It is also the only executor that can be used with sqlite since sqlite doesn’t support multiple connections.
Since we want airflow to work out of the box, it defaults to this SequentialExecutor alongside sqlite as you first install it.
- execute_async(key, command, queue=None, executor_config=None)[source]¶
This method will execute the command asynchronously.
key (airflow.models.taskinstance.TaskInstanceKey) – Unique key for the task instance
command (airflow.executors.base_executor.CommandType) – Command to run
queue (str | None) – name of the queue
executor_config (Any | None) – Configuration passed to the executor.
Sync will get called periodically by the heartbeat method. Executors should override this to perform gather statuses.