recurrence
recurrence
¶
Recurring-score controller joining durable schedules to normal submission.
Classes¶
RecurrenceController
¶
RecurrenceController(registry, submit, schedule_tick, cancel_tick, is_active, *, now=utc_now, rng=None)
Own recurrence calculation, timer handles, and scheduled submissions.
Source code in src/marianne/daemon/recurrence.py
Methods:¶
restore
async
¶
Restore one live timer or one collapsed misfire per enabled schedule.
Source code in src/marianne/daemon/recurrence.py
register
async
¶
register(score_path, config=None, *, before_wait=None, before_mutation=None, pin=None, require_schedule=False, registration_id=None)
Register or replace the current schedule declaration for one score.
Registration is the daemon-owned authority channel for source pinning:
pin=None derives the opt-in from the score's
schedule.pin_source_digest declaration, while an explicit
pin=True/pin=False overrides it (for embedders that hold their
own activation authority). The pin value stored in the registry row is
the digest of the bytes read at registration, so a conscious
re-registration amends the pin; mutable score bytes cannot rewrite the
row between registrations.
Source code in src/marianne/daemon/recurrence.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | |
handle_tick
async
¶
Claim, resolve, record, and advance one exact recurring due identity.
Source code in src/marianne/daemon/recurrence.py
pause
async
¶
Pause one schedule and cancel its pending timer.
Source code in src/marianne/daemon/recurrence.py
resume
async
¶
Resume one schedule and restore its one pending due identity.
Source code in src/marianne/daemon/recurrence.py
remove
async
¶
Remove one schedule and revoke its pending timer.
Source code in src/marianne/daemon/recurrence.py
describe
async
¶
Return durable schedule projections for later presentation layers.
Source code in src/marianne/daemon/recurrence.py
shutdown
async
¶
Cancel every controller-owned handle before timer-wheel shutdown.