Skip to content

Add an option to run backfill while keeping dag execution suspended #60768

Closed

Description

@MasterEod

Description

As a maintainer
I would like to run backfill while suspending dag execution
In order to backfill without executing dag every day
In order to avoid useless computation and log

Use case/motivation

To perform a backfill, a dag must be triggered by cron and also it must be activated. In our case, we have a dag to reprocess old data, but we cannot run it dayly via cron because the data is not available.

Image

So we want to run only backfill while keeping daily dag execution suspended to avoid useless computation.

Actually, we have an option Unpause XXXX on trigger. We could add a new option Run backfill and keep dag suspended to run only backfill

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 Jan 19, 2026
  2. added
    area:backfill
    on Jan 19, 2026
  3. added 2 commits that reference this issue on Jan 20, 2026
    c8ddd21
    e0612ed
  4. subhash-0000 commented on Jan 20, 2026

    @subhash-0000
    Contributor

    I've created a PR to address this issue: #60818

    The implementation adds a new "Run backfill while keeping DAG paused" option that allows backfills to execute without unpausing the DAG. This prevents unnecessary daily executions when data isn't available, as requested.

    Key features:

    • New keep_dag_paused parameter in the backfill model and API
    • Modified scheduler logic to allow backfill runs on paused DAGs when enabled
    • UI checkbox in the backfill form (disabled when "Unpause DAG" is selected)
    • Fully backward compatible (defaults to existing behavior)
    • Includes tests and documentation

    The PR is ready for review!

  5. pierrejeambrun commented on Feb 6, 2026

    @pierrejeambrun
    Member

    @dstandish I'd love your input on this, wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:backfillkind:featureneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions