docs: align poller comments with freshness rules
This commit is contained in:
@@ -717,13 +717,10 @@ class Scheduler:
|
|||||||
# Fresh read per schedule: the tick lists schedules up front while
|
# Fresh read per schedule: the tick lists schedules up front while
|
||||||
# same-process administration may commit an edit, pause, resume, or
|
# same-process administration may commit an edit, pause, resume, or
|
||||||
# delete mid-tick. All admission decisions below (policies,
|
# delete mid-tick. All admission decisions below (policies,
|
||||||
# revision, flags) use this fresh copy, never the listing
|
# revision, flags, and managed trigger source) use this fresh copy,
|
||||||
# snapshot. Two narrow residuals remain: calendar iteration uses
|
# never the listing snapshot. A definition edit that races the
|
||||||
# the tick-start occurrence source (a trigger edit takes effect
|
# final admission recheck is rejected as schedule-changed, so stale
|
||||||
# on the next tick), and an admission decision already in flight
|
# terms cannot create a duplicate or replay.
|
||||||
# cannot observe a concurrent edit — admission stays idempotent
|
|
||||||
# per (schedule, instant), so the worst case is one run admitted
|
|
||||||
# under just-superseded terms, never a duplicate or replay.
|
|
||||||
try:
|
try:
|
||||||
sched = self.schedule_store.get_schedule(sched.id)
|
sched = self.schedule_store.get_schedule(sched.id)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|||||||
Reference in New Issue
Block a user