-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Scheduler to handle incrementing of try_number #39336
Merged
dstandish
merged 53 commits into
apache:main
from
astronomer:remove-try-number-shenanigans
May 9, 2024
Merged
Scheduler to handle incrementing of try_number #39336
dstandish
merged 53 commits into
apache:main
from
astronomer:remove-try-number-shenanigans
May 9, 2024
Commits on May 8, 2024
-
Refactor tests re sensor reschedule mode and try_number
It's a little clearer what's going on when we're not in a loop or behind an `assert...` helper function. Additionally I add asserts immediately after calling `clear`. This will make it easier to review changes when we attempt to fix try_number shenanigans.
Configuration menu - View commit details
-
Copy full SHA for cade71e - Browse repository at this point
Copy the full SHA cade71eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c04e0f5 - Browse repository at this point
Copy the full SHA c04e0f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31e2c21 - Browse repository at this point
Copy the full SHA 31e2c21View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad2ccd0 - Browse repository at this point
Copy the full SHA ad2ccd0View commit details -
Previously, there was a lot of bad stuff happening around try_number. We incremented it when task started running. And because of that, we had this logic to return "_try_number + 1" when task *not* running. And, since it was naively incremented when task starts running -- i.e. without regard to why it is running -- we *decremented* it when deferring or exiting on a reschedule. What I do here is try to remove *all* of that stuff: * no more private _try_number attr * no more getter logic * no more decrementing * no more incrementing as part of task execution Now what we do is increment only when the task is set to *scheduled* and only when it's not coming out of deferral or "up_for_reschedule".
Configuration menu - View commit details
-
Copy full SHA for 47ae9a6 - Browse repository at this point
Copy the full SHA 47ae9a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32bb153 - Browse repository at this point
Copy the full SHA 32bb153View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4cb129 - Browse repository at this point
Copy the full SHA c4cb129View commit details -
Configuration menu - View commit details
-
Copy full SHA for e02aa1b - Browse repository at this point
Copy the full SHA e02aa1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 566f9cd - Browse repository at this point
Copy the full SHA 566f9cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bad786 - Browse repository at this point
Copy the full SHA 8bad786View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7491f3d - Browse repository at this point
Copy the full SHA 7491f3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d467cef - Browse repository at this point
Copy the full SHA d467cefView commit details -
Configuration menu - View commit details
-
Copy full SHA for a0dcb55 - Browse repository at this point
Copy the full SHA a0dcb55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f94368 - Browse repository at this point
Copy the full SHA 4f94368View commit details -
Configuration menu - View commit details
-
Copy full SHA for 867a8ba - Browse repository at this point
Copy the full SHA 867a8baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a40c53 - Browse repository at this point
Copy the full SHA 8a40c53View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5184b5 - Browse repository at this point
Copy the full SHA c5184b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e1b94b - Browse repository at this point
Copy the full SHA 1e1b94bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4938f40 - Browse repository at this point
Copy the full SHA 4938f40View commit details -
Configuration menu - View commit details
-
Copy full SHA for f740a14 - Browse repository at this point
Copy the full SHA f740a14View commit details -
Configuration menu - View commit details
-
Copy full SHA for da4ba4d - Browse repository at this point
Copy the full SHA da4ba4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f6e2d0 - Browse repository at this point
Copy the full SHA 4f6e2d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7805f9 - Browse repository at this point
Copy the full SHA c7805f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e23e251 - Browse repository at this point
Copy the full SHA e23e251View commit details -
Configuration menu - View commit details
-
Copy full SHA for c59c4bb - Browse repository at this point
Copy the full SHA c59c4bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc83374 - Browse repository at this point
Copy the full SHA fc83374View commit details -
Configuration menu - View commit details
-
Copy full SHA for f154941 - Browse repository at this point
Copy the full SHA f154941View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb8f4d5 - Browse repository at this point
Copy the full SHA eb8f4d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4d69d2 - Browse repository at this point
Copy the full SHA d4d69d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3efc668 - Browse repository at this point
Copy the full SHA 3efc668View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f8ceb0 - Browse repository at this point
Copy the full SHA 8f8ceb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c98f0c8 - Browse repository at this point
Copy the full SHA c98f0c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for fdcb6e5 - Browse repository at this point
Copy the full SHA fdcb6e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d440d41 - Browse repository at this point
Copy the full SHA d440d41View commit details -
Configuration menu - View commit details
-
Copy full SHA for c359514 - Browse repository at this point
Copy the full SHA c359514View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca169c6 - Browse repository at this point
Copy the full SHA ca169c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42f08e8 - Browse repository at this point
Copy the full SHA 42f08e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76c56ad - Browse repository at this point
Copy the full SHA 76c56adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7559b88 - Browse repository at this point
Copy the full SHA 7559b88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 017a2c4 - Browse repository at this point
Copy the full SHA 017a2c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9205af - Browse repository at this point
Copy the full SHA f9205afView commit details -
Configuration menu - View commit details
-
Copy full SHA for f570d9f - Browse repository at this point
Copy the full SHA f570d9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d046774 - Browse repository at this point
Copy the full SHA d046774View commit details -
Configuration menu - View commit details
-
Copy full SHA for 839d15a - Browse repository at this point
Copy the full SHA 839d15aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 635e6b4 - Browse repository at this point
Copy the full SHA 635e6b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e2069d - Browse repository at this point
Copy the full SHA 2e2069dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 41107f6 - Browse repository at this point
Copy the full SHA 41107f6View commit details -
Apply suggestions from code review
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 54e5daf - Browse repository at this point
Copy the full SHA 54e5dafView commit details -
Apply suggestions from code review
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 6252900 - Browse repository at this point
Copy the full SHA 6252900View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdf549f - Browse repository at this point
Copy the full SHA cdf549fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3428b89 - Browse repository at this point
Copy the full SHA 3428b89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2277e22 - Browse repository at this point
Copy the full SHA 2277e22View commit details -
Configuration menu - View commit details
-
Copy full SHA for da82a1c - Browse repository at this point
Copy the full SHA da82a1cView commit details
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.