Skip to content
Snippets Groups Projects

Draft: Implement "stop after success" scheduler policy

1 unresolved thread

Includes a new command to peek at the next scheduled tasks (in read-only mode).

TODO:

  • test coverage
  • hook this up as default for the relevant visit types in schedule_recurrent.py

Merge request reports

Members who can merge are allowed to add commits.

Pipeline #13535 passed

Pipeline passed for 50362be6 on olasd:mr/single-load-scheduling-policy

Approval is optional
Merge blocked: 2 checks failed

Merge details

  • The source branch is 11 commits behind the target branch.
  • 3 commits will be added to master.
  • Source branch will be deleted.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
290 296 and e[1].last_scheduled.timestamp()
291 297 or -1
292 298 )
299 elif policy == "stop_after_success":
300 origins_stats = [
301 (o, s)
302 for (o, s) in origins_stats
303 if (s is None or s.last_visit_status != LastVisitStatus.successful)
  • Sounds like a good idea indeed!

  • Please register or sign in to reply
    Loading