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

Scheduler to handle incrementing of try_number #39336

Merged
merged 53 commits into from
May 9, 2024

Commits on May 8, 2024

  1. 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.
    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    cade71e View commit details
    Browse the repository at this point in the history
  2. fix

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c04e0f5 View commit details
    Browse the repository at this point in the history
  3. fix

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    31e2c21 View commit details
    Browse the repository at this point in the history
  4. fix

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ad2ccd0 View commit details
    Browse the repository at this point in the history
  5. Remove try_number shenanigans

    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".
    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    47ae9a6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    32bb153 View commit details
    Browse the repository at this point in the history
  7. fix tests

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c4cb129 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e02aa1b View commit details
    Browse the repository at this point in the history
  9. nothing

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    566f9cd View commit details
    Browse the repository at this point in the history
  10. reduce diff

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8bad786 View commit details
    Browse the repository at this point in the history
  11. correct logic

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    7491f3d View commit details
    Browse the repository at this point in the history
  12. remove todos

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d467cef View commit details
    Browse the repository at this point in the history
  13. fix tests

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    a0dcb55 View commit details
    Browse the repository at this point in the history
  14. fix tests

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4f94368 View commit details
    Browse the repository at this point in the history
  15. fix tests

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    867a8ba View commit details
    Browse the repository at this point in the history
  16. batch of test fixes

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8a40c53 View commit details
    Browse the repository at this point in the history
  17. fix backoff logic

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c5184b5 View commit details
    Browse the repository at this point in the history
  18. comment

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    1e1b94b View commit details
    Browse the repository at this point in the history
  19. next batch of fixes

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4938f40 View commit details
    Browse the repository at this point in the history
  20. fix sentry

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    f740a14 View commit details
    Browse the repository at this point in the history
  21. --wip-- [skip ci]

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    da4ba4d View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    4f6e2d0 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    c7805f9 View commit details
    Browse the repository at this point in the history
  24. misc test fixes

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    e23e251 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    c59c4bb View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    fc83374 View commit details
    Browse the repository at this point in the history
  27. backfill test fixes

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    f154941 View commit details
    Browse the repository at this point in the history
  28. test fixes

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    eb8f4d5 View commit details
    Browse the repository at this point in the history
  29. fix tests

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d4d69d2 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    3efc668 View commit details
    Browse the repository at this point in the history
  31. revert logging changes

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8f8ceb0 View commit details
    Browse the repository at this point in the history
  32. fix tests

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c98f0c8 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    fdcb6e5 View commit details
    Browse the repository at this point in the history
  34. formatting

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d440d41 View commit details
    Browse the repository at this point in the history
  35. fix test

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c359514 View commit details
    Browse the repository at this point in the history
  36. static check fix

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ca169c6 View commit details
    Browse the repository at this point in the history
  37. fix tests

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    42f08e8 View commit details
    Browse the repository at this point in the history
  38. fix tests

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    76c56ad View commit details
    Browse the repository at this point in the history
  39. fix tests

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    7559b88 View commit details
    Browse the repository at this point in the history
  40. fix test

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    017a2c4 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    f9205af View commit details
    Browse the repository at this point in the history
  42. remove log adsd

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    f570d9f View commit details
    Browse the repository at this point in the history
  43. fix spelling

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d046774 View commit details
    Browse the repository at this point in the history
  44. fix tests

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    839d15a View commit details
    Browse the repository at this point in the history
  45. add todo

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    635e6b4 View commit details
    Browse the repository at this point in the history
  46. news fragment

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    2e2069d View commit details
    Browse the repository at this point in the history
  47. todo

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    41107f6 View commit details
    Browse the repository at this point in the history
  48. Apply suggestions from code review

    Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
    dstandish and jedcunningham authored May 8, 2024
    Configuration menu
    Copy the full SHA
    54e5daf View commit details
    Browse the repository at this point in the history
  49. Apply suggestions from code review

    Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
    dstandish and jedcunningham authored May 8, 2024
    Configuration menu
    Copy the full SHA
    6252900 View commit details
    Browse the repository at this point in the history
  50. imports

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    cdf549f View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    3428b89 View commit details
    Browse the repository at this point in the history
  52. fix test

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    2277e22 View commit details
    Browse the repository at this point in the history
  53. tweaks

    dstandish committed May 8, 2024
    Configuration menu
    Copy the full SHA
    da82a1c View commit details
    Browse the repository at this point in the history