Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'allow_trigger_in_future' config #46663

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

uranusjr
Copy link
Member

A DAG run with logical date in the future can never be started now. This only affects schedule=None, which can only be triggered manually.

Instead of using a future date, you can trigger with a None logical date whenever you want. A custom run_id can be supplied if you want it. If a date is needed, it can be passed as a DAG param instead.

@uranusjr uranusjr added the airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes label Feb 12, 2025
@boring-cyborg boring-cyborg bot added area:Scheduler including HA (high availability) scheduler area:task-sdk kind:documentation labels Feb 12, 2025
@Lee-W Lee-W self-requested a review February 12, 2025 04:25
A DAG run with logical date in the future can never be started now. This
only affects schedule=None, which can only be triggered manually.

Instead of using a future date, you can trigger with a None logical date
whenever you want. A custom run_id can be supplied if you want it. If a
date is needed, it can be passed as a DAG param instead.
@uranusjr uranusjr force-pushed the fix-logical-date-none-scheduler branch from 7512fb1 to 6f52ec2 Compare February 12, 2025 04:27
@uranusjr uranusjr force-pushed the fix-logical-date-none-scheduler branch from 6f52ec2 to 3ac9945 Compare February 12, 2025 04:30
@uranusjr uranusjr marked this pull request as ready for review February 12, 2025 06:28
@Lee-W
Copy link
Member

Lee-W commented Feb 12, 2025

I'll merge it and rebase it to #46460 once CI is green.

@uranusjr uranusjr merged commit 34261d0 into apache:main Feb 12, 2025
119 checks passed
@uranusjr uranusjr deleted the fix-logical-date-none-scheduler branch February 12, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes area:Scheduler including HA (high availability) scheduler area:task-sdk kind:documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants