Skip to content

TriggerDagRunOperator dynamic mapping sequential execution #47609

Closed

Description

@pdavidovicmsft

Description

Hey folks,

I have code like this:

trigger_matcher_tasks = TriggerDagRunOperator.partial(
task_id='trigger_dag',
trigger_dag_id='example_dag',
wait_for_completion=True,
poke_interval=60,
).expand(
conf=configs_array
)

And I'd like to enforce triggering to work this way:
TriggerDag(config1) -> TriggerDag(config2) -> TriggerDag(config3)...

Essentially, I'd like to every triggering to wait for run started with previous triggering to be finished.

Can I do this with dynamic task mapping ?

Use case/motivation

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Mar 11, 2025
  2. boring-cyborg commented on Mar 11, 2025

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

  3. omd10 commented on Feb 20, 2026

    @omd10

    You can do sequential dynamic tasks by adding max_active_tasks=1 to your dag configuration. It works with TriggerDagRunOperator as described in your question. Thanks for sharing this specific example!

  4. locked and limited conversation to collaborators on Jun 19, 2026
  5. converted this issue into a discussion #68752 on Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dynamic-task-mappingkind:featureneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions