Skip to content

Trigger and Watcher it not running for External-Event Driven Dag #64617

@jason810496

Description

@jason810496

Apache Airflow version

latest v3-2-test branch and cherry-picked both #64598 patch and #64615 patch

Reproduce Step

Either a. or b. can work

a.

minimum Dag by @uranusjr

from __future__ import annotations

from airflow.providers.apache.kafka.triggers.await_message import AwaitMessageTrigger
from airflow.sdk import DAG, Asset, AssetWatcher, task

trigger = AwaitMessageTrigger(topics=())
asset = Asset("x", watchers=[AssetWatcher("am", trigger)])

with DAG(dag_id="t", schedule=asset) as dag:
    pass

b.
follow #64613 to reproduce with e2e flow

What happened

The Triggerer showing no trigger and watcher is running:

Image

Additiaonlly, it show 0 tigger in the DB:

airflow=# SELECT * FROM trigger;
 id | classpath | kwargs | created_date | triggerer_id | queue 
----+-----------+--------+--------------+--------------+-------
(0 rows)

What you think should happen instead?

No response

Operating System

Breeze

Versions of Apache Airflow Providers

No response

Deployment

None

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

affected_version:3.2Use for reporting issues with 3.2area:corekind:bugThis is a clearly a bugpriority:highHigh priority bug that should be patched quickly but does not require immediate new release

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions