Skip to content

Conversation

markstory
Copy link
Member

When new crontab schedules are added they should align to their crontab schedule and not run off-schedule when there is no previous run information available. We can assume that the previous run was in the 'past' and use that as a starting point for the crontab schedule.

When new crontab schedules are added they should align to their crontab
schedule and not run off-schedule when there is no previous run
information available. We can assume that the previous run was
in the 'past' and use that as a starting point for the crontab schedule.
@markstory markstory requested a review from a team as a code owner August 10, 2025 02:41
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 10, 2025
Copy link

codecov bot commented Aug 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #97557      +/-   ##
==========================================
- Coverage   80.73%   80.62%   -0.11%     
==========================================
  Files        8566     8560       -6     
  Lines      378963   376889    -2074     
  Branches    24538    24538              
==========================================
- Hits       305948   303864    -2084     
- Misses      72645    72655      +10     
  Partials      370      370              

@@ -124,7 +124,7 @@ def monitor_value(self) -> str:
def is_due(self, last_run: datetime | None = None) -> bool:
"""Check if the schedule is due to run again based on last_run."""
if last_run is None:
return True
last_run = timezone.now() - timedelta(minutes=1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this hardcoded to one minute?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants