Conversation
Run garbage collection and usage maintenance on a persisted UTC schedule alongside the API, with bounded catch-up and process-group shutdown. Extend the quickstart smoke to prove the scheduler and all four jobs.
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.
Self-hosted installs currently run no maintenance, so deleted content is never reclaimed. Start the scheduler inside the API container using the API's database, object store, and environment. Run the four maintenance jobs serially on their UTC cadence, persist catch-up state, and bound child execution with process-group shutdown.
The quickstart smoke now proves the scheduler records a tick and executes every scheduled job. README and operator commands describe the behavior.
Validation:
uv sync --frozenNO_PROXY='*' no_proxy='*' .venv/bin/pytest -q tests/test_jobs_scheduler.py tests/test_selfhost_compose.py tests/test_supervisor_local_env.py— 71 passed.venv/bin/ruff check— passedpython3 scripts/check_public_snapshot.py— cleangit diff --cached --check— passedThe Docker quickstart and full matrix require CI; the local Docker daemon cannot reach registries. Independent and adversarial reviews are complete. Both identified premature batch checkpointing; the adversarial pass also identified missing cancellation handlers for manual runs. Both are fixed in a separate commit, with regression tests observed failing before the fixes and passing afterward. An independent reviewer reran the scheduler suite (56 passed). This carries the existing scheduler implementation into the public source tree ahead of v0.1.0; no API/schema changes. The carry-over is byte-identical to the filtered snapshot except the two review fixes. Governing extraction design: §4.9 and rollout §5; release/tag approval remains separate.