Thomas M
Thomas M

Reputation: 339

How do you create a triggerer process in an Airflow installation?

In an Airflow DAG, I am trying to use a TimeDeltaTrigger:

from airflow.triggers.temporal import TimeDeltaTrigger
...
self.defer(trigger=TimeDeltaTrigger(timedelta(seconds=15)), method_name="execute")

But when my DAG runs, I get a warning in the GUI:

enter image description here

In the GUI, if I go to Browse -> Triggers I see one trigger, but it is not for TimeDeltaTrigger:

enter image description here

The documentation for Deferrable Operators (https://airflow.apache.org/docs/apache-airflow/stable/concepts/deferring.html) says:

Ensure your Airflow installation is running at least one triggerer process, as well as the normal scheduler

But it is not clear how to do this.

How can I configure my Airflow installation so that I can use a TimeDeltaTrigger?

Upvotes: 5

Views: 6684

Answers (1)

Collin McNulty
Collin McNulty

Reputation: 484

triggerer is a process like scheduler, webserver, and worker. You need to start a process or container dedicated to running the triggerer to use deferrable operators.

To start a triggerer process, run airflow triggerer in your Airflow environment. You should see an output similar to the below image.

Triggerer Logs enter image description here

Upvotes: 9

Related Questions