GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Deprecate implicit default DAG schedule by uranusjr · Pull Request #41321 · apache/airflow

Conversation

@uranusjr

@uranusjr uranusjr commented Aug 7, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Currently, if a DAG is created without the 'schedule' argument, Airflow sets the DAG to run daily. This is almost never what people want, and every best practice tells you to always specify the argument explicitly, but we couldn't change the default due to compatibility considerations.

We can finally change this in Airflow 3.0, but first we need to tell users about it.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@uranusjr
Deprecate implicit DAG schedule
c5a8141
Currently, if a DAG is created with the 'schedule' argument, Airflow
sets the DAG to run daily. This is almost never what people want, and
every best practice tells you to always specify the argument explicitly,
but we couldn't change the default due to compatibility considerations.

We can finally change this in Airflow 3.0, but first we need to tell
users about it.
@uranusjr uranusjr added this to the Airflow 2.10.0 milestone Aug 7, 2024
@uranusjr
uranusjr requested review from XD-DENG, ashb and kaxil as code owners August 7, 2024 21:59
kaxil
kaxil approved these changes Aug 7, 2024
View reviewed changes
jscheffl
jscheffl approved these changes Aug 7, 2024
View reviewed changes
@uranusjr
Fix some test and example DAGs
9375f61
@uranusjr
uranusjr requested review from dstandish, ephraimbuddy and jedcunningham as code owners August 7, 2024 22:47
uranusjr added 3 commits August 8, 2024 07:09
@uranusjr
Fix more DAGs in tests
39ebe98
@uranusjr
Fix dag_maker fixture
d45bdab
@uranusjr
Missed some
4846aa4
jscheffl
jscheffl reviewed Aug 7, 2024
View reviewed changes
Comment thread airflow/models/dag.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

jedcunningham
jedcunningham approved these changes Aug 8, 2024
View reviewed changes
@uranusjr
Fix SerializedDAG init warning
b8f5aa2
@uranusjr
uranusjr requested a review from bolkedebruin as a code owner August 8, 2024 07:13
@uranusjr
More test DAG warning fixes
47822d0
@uranusjr
uranusjr requested review from eladkal and o-nikolas as code owners August 8, 2024 07:52
@uranusjr
More test DAG warning fixes
2de04c7
@uranusjr
uranusjr force-pushed the deprecate-missing-schedule branch from fe49f6c to 2de04c7 Compare August 8, 2024 08:12
uranusjr added 6 commits August 8, 2024 16:56
@uranusjr
dag_maker needs to have a default schedule
1aa30d3
@uranusjr
More warnings from DAGs in tests
ba37796
@uranusjr
More DAG warning fixes in tests
f9a64e3
@uranusjr
Fix DAG warning in API tests
f51d2cb
@uranusjr
More warning fixes in tests
9cdec72
@uranusjr
Use the correct schedule for test
42fca56
vincbeck
vincbeck approved these changes Aug 8, 2024
View reviewed changes
@uranusjr
uranusjr force-pushed the deprecate-missing-schedule branch from 2f54b65 to d12b93d Compare August 14, 2024 01:33
uranusjr added 4 commits August 14, 2024 10:25
@uranusjr
More schedule deprecation warnings
c7e92c0
@uranusjr
More schedule deprecation warnings
faedd7d
@uranusjr
I hope we're near the end
0cf9c6e
@uranusjr
Are these the only ones left?
4ea73fd
@uranusjr uranusjr changed the title Change default DAG schedule to None Deprecate implicit default DAG schedule Aug 14, 2024
uranusjr added 2 commits August 14, 2024 13:57
@uranusjr
Fix dag_maker schedule for compat arguments
a6a5956
@uranusjr
How many more?
379e016
@eladkal

eladkal commented Aug 14, 2024

Copy link
Copy Markdown
Contributor

A backport to the 2.10 branch is needed.

According to the new rules it's on the committer who merges it to backport it and create a new PR if I read them right.

I raised #41457 to document the protocols

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@uranusjr
This should fix all the providers
913a65e
@uranusjr
uranusjr requested a review from mobuchowski as a code owner August 14, 2024 08:16
@uranusjr
Correctly reset ParseImportError in test
210df42
@uranusjr
uranusjr force-pushed the deprecate-missing-schedule branch from a72b193 to 210df42 Compare August 14, 2024 09:10
uranusjr added 2 commits August 14, 2024 17:49
@uranusjr
Merge branch 'main' into deprecate-missing-schedule
cc0c2a4
@uranusjr
MySQL and SQLite fixes
7225cbf
@uranusjr

uranusjr commented Aug 14, 2024

Copy link
Copy Markdown
Member Author

Finally… now merge and work on bacporting.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@uranusjr
uranusjr merged commit 3f2cf33 into apache:main Aug 14, 2024
@uranusjr
uranusjr deleted the deprecate-missing-schedule branch August 14, 2024 10:50
@uranusjr uranusjr mentioned this pull request Aug 14, 2024
[Backport] Deprecate implicit default DAG schedule #41469
Merged
@uranusjr uranusjr removed this from the Airflow 2.10.0 milestone Aug 14, 2024
uranusjr added a commit to astronomer/airflow that referenced this pull request Aug 15, 2024
@uranusjr @potiuk
Deprecate implicit default DAG schedule (apache#41321)
3656486
Co-authored-by: Jarek Potiuk <[email protected]>
@uranusjr uranusjr mentioned this pull request Aug 15, 2024
Default start_date and schedule_interval to None #24842
Closed
2 tasks done
@malthe

malthe commented Aug 15, 2024

Copy link
Copy Markdown
Contributor

s/with/without a ‘schedule’ argument.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Artuz37 pushed a commit to Artuz37/airflow that referenced this pull request Aug 19, 2024
@uranusjr @potiuk @Artuz37
Deprecate implicit default DAG schedule (apache#41321)
90fe944
Co-authored-by: Jarek Potiuk <[email protected]>
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Aug 20, 2024
@uranusjr @potiuk @romsharon98
Deprecate implicit default DAG schedule (apache#41321)
381407f
Co-authored-by: Jarek Potiuk <[email protected]>
@utkarsharma2 utkarsharma2 added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 30, 2024
@utkarsharma2 utkarsharma2 added this to the Airflow 2.10.1 milestone Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jscheffl jscheffl jscheffl approved these changes
@potiuk potiuk potiuk approved these changes
@kaxil kaxil kaxil approved these changes
@hussein-awala hussein-awala hussein-awala approved these changes
@jedcunningham jedcunningham jedcunningham approved these changes
@vincbeck vincbeck vincbeck approved these changes
@XD-DENG XD-DENG Awaiting requested review from XD-DENG
@ashb ashb Awaiting requested review from ashb
@ephraimbuddy ephraimbuddy Awaiting requested review from ephraimbuddy
@dstandish dstandish Awaiting requested review from dstandish
@bolkedebruin bolkedebruin Awaiting requested review from bolkedebruin
@eladkal eladkal Awaiting requested review from eladkal
@o-nikolas o-nikolas Awaiting requested review from o-nikolas
@mobuchowski mobuchowski Awaiting requested review from mobuchowski

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Milestone

Airflow 2.10.1

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

10 participants

@uranusjr @kaxil @potiuk @eladkal @malthe @hussein-awala @jedcunningham @jscheffl @vincbeck @utkarsharma2
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.