[apscheduler] make the managed job store immutable at runtime - #287
Open
ricardo-agz wants to merge 1 commit into
Open
[apscheduler] make the managed job store immutable at runtime#287ricardo-agz wants to merge 1 commit into
ricardo-agz wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ricardo-agz
marked this pull request as draft
August 12, 2026 00:38
ricardo-agz
force-pushed
the
ricardo/aps-declared-only-jobs
branch
from
August 12, 2026 01:24
30f6230 to
b4d8872
Compare
This was referenced Aug 12, 2026
ricardo-agz
force-pushed
the
ricardo/aps-declared-only-jobs
branch
from
August 12, 2026 02:04
b4d8872 to
fc6c0b8
Compare
ricardo-agz
force-pushed
the
ricardo/aps-declared-only-jobs
branch
from
August 12, 2026 02:15
fc6c0b8 to
49461d8
Compare
ricardo-agz
force-pushed
the
ricardo/aps-declared-only-jobs
branch
from
August 12, 2026 02:20
49461d8 to
d1c9e2f
Compare
ricardo-agz
marked this pull request as ready for review
August 12, 2026 02:55
ricardo-agz
force-pushed
the
ricardo/aps-declared-only-jobs
branch
from
August 13, 2026 21:58
d1c9e2f to
11b28c7
Compare
Runtime and in-wake job creation and mutation now raise: an evictable, per-region cache cannot durably hold state that only exists at runtime, and a silently lost pause or removal resurrects work an operator stopped. The store holds code-declared jobs plus execution progress, all reconstructable from code and the in-flight messages. Jobs change by deploying changed declarations; a job that must not run is stopped by removing or gating its declaration, or by a flag in application-owned storage. Dynamic schedules belong in an application-owned database; one-shot work in a delayed queue message. A future durable backend can lift the restriction behind the same Backend protocol without an API change.
ricardo-agz
force-pushed
the
ricardo/aps-declared-only-jobs
branch
from
August 13, 2026 22:33
11b28c7 to
c80a211
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rejects runtime job creation and mutation on the managed store
Rationale:
Runtime cache is not durable enough / expose the api needed to reliably implement dynamic job creation / mutation
Eviction would mean a runtime-added job would get dropped, or a modified job would silently revert back to it's original config, we should enable this later once our store can offer those durability guarantees
The gate lives in the coordinator, not the patched scheduler methods, so in-wake self-mutations (which bypass the wrappers in queue-serving runtimes) are covered by the same check.
With runtime writes gone, every record is a declaration plus progress, so the provenance concept (
declaredvsruntimerecords) is meaningless and this PR deletes it outright — nothing has shipped, so there is no legacy state to respect.Deliberately unchanged
add_job()andscheduled_job()(that is how declared jobs exist).cas_update/cas_removefrom the wake path) and reconciliation.start()/pause()/resume()— documented as operational control;pause()is not a kill switch.A future durable backend can lift the restriction behind the same
Backendprotocol without an API change.