Skip to content

Support dispatching triggers to different triggerer instances. #33818

@UnightSun

Description

@UnightSun

Description

Let it say:
We have two celery workers: A and B, they cannot access to each other
worker A can access file A, but can not access file B,
and worker B can access file B, not file A.
And we need to check both file's status and move on.

With sensors, we can set workers A and B to different queue, and specify task's queue parameter.
But when we trying to use deferrable operator and triggers, we cannot specify which triggerer it runs on.

Use case/motivation

airflow triggerer can take a parameter like celery worker's queue, and Operator.defer or Operator.__init__ can specify that parameter, make tigger runs on that triggerer (or one of triggerers).

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions