Skip to content

use_job_schedule affects asset based scheduling #62929

Description

@devgonvarun

Apache Airflow version

3.1.7

What happened?

"use_job_schedule" - should "Turn off scheduler use of cron intervals by setting this to False. DAGs submitted manually in the web UI or with trigger_dag will still run.".

However, setting this to "False" not only disables time based scheduling but also Assets based scheduling.

What you think should happen instead?

This configuration should only affect time based scheduling as mentioned in the documentation. Asset based scheduling should not be affected.

Use Case: a Development environment with disabled time based scheduling, so that developers can develop their dags with the most freedom in this environment and when their dags are ready they can move them to higher (test and prod) environments with time based scheduling enabled. Because of "use_job_schedule" affecting both time and asset based scheduling, Asset based scheduling cannot be used in this environment.

So this is a bug report on the intended behaviour of "use_job_schedule" based on the documentation OR request of a new configuration that decouples time and asset based scheduling from "use_job_schedule".

How to reproduce

Start a new airflow instance with "use_job_schedule" set to False. You can also use the "AIRFLOW__SCHEDULER__USE_JOB_SCHEDULE" environment variable to set this. Then use the following minimal Asset based scheduling dag, manually create asset trigger from the Assets menu and you will observe that the dag does not get triggered. Now retry with "use_job_schedule" set to True and the dag will get triggered.

from airflow.sdk import dag, task, Asset
import pendulum

my_asset = Asset("asset")

@task
def trigger_on_asset_event():
    print("hello after asset event")

@dag(
    start_date=pendulum.datetime(2025, 6, 29, tz="Europe/Berlin"),
    schedule=[my_asset],
)
def asset_scheduled_dag():
    trigger_on_asset_event()

asset_scheduled_dag()

Operating System

Debian GNU/Linux 12 (bookworm)

Deployment

Official Apache Airflow Helm Chart

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. changed the title [-]use_job_schedule also affects asset based scheduling[/-] [+]use_job_schedule affects asset based scheduling[/+] on Mar 5, 2026
  2. added 6 commits that reference this issue on Mar 5, 2026
    fd96cc0
    989ac49
    6c5c5ae
    8230a17
    f7c14e4
    9ddd50c
  3. tirkarthi commented on Mar 8, 2026

    @tirkarthi
    Contributor
  4. added 3 commits that reference this issue on Mar 12, 2026
    88975e2
    4e6c39f
    043dce8
  5. 25 remaining items

  6. added 12 commits that reference this issue on Apr 10, 2026
    d74bf81
    3864273
    d6cb3b0
    b7f24a4
    429e3fc
    f1546d1
    eecdba8
    d4aed2a
    f3af158
    ff6a47f
    43b4c10
    ff07ec3
  7. added a commit that references this issue on Apr 16, 2026
    26ef6ec
  8. added 2 commits that reference this issue on Aug 19, 2026
    62e8aac
    1171c38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions