Repository navigation
Add storage sync, tessellation modes, and stuck-job watchdog - #43
Merged
Merged
Conversation
Decouples ingest from raw file transfer via mc-based staging sync, adds configurable survey tile-tessellation modes, and closes a watchdog/broker race condition with a per-task Celery time-limit contract and stale-redelivery guard.
Decouples ingest from raw file transfer via mc-based staging sync, adds configurable survey tile-tessellation modes, and closes a watchdog/broker race condition with a per-task Celery time-limit contract and stale-redelivery guard.
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.
Summary
mc-based staging→canonical storage sync (Celery task + Beat cron), withLocalStorageService.list_prefixfixed for true string-prefix matching and dot-file exclusion.cone,project_footprint,bounding_box) and anoverlap_onlykeep-policy, replacing the old pre-computedmoc_to_tileinput with aregion_source-discriminated request schema.JobConfigurationdispatch linkage, per-job staleness override,reconcile_stuck_jobsservice + API/CLI/Beat cron) that auto-fails jobs leftIN_PROCESSby an uncatchable worker crash or OOM kill.TimeLimitedTask/DiffpypeTask,__init_subclass__-enforced so no concrete task can skip declaring its ownsoft_time_limit_seconds/tracked_entity_model) and abegin_tracked_jobstale-redelivery guard, closing a real race condition between the watchdog and Redis's ownvisibility_timeoutbroker redelivery.sqlalchemy-celery-beat, in its owncelery_schemaPostgres schema) with a dedicatedbeatcontainer and SQLAdmin views for runtime schedule editing without restarts.CLI Verification
All steps completed prior to PR creation via
genTests.feature/operational-services-watchdogdocker compose build api worker_light worker_heavy beatdocker compose up -d api worker_light worker_heavy beat0013(JobConfiguration.task_name),0014(Beat scheduler tables incelery_schema) — both applied and verified livedocker compose exec api uv run pytest --cov=src --cov-fail-under=90 -q)docs/diagrams/infrastructure_topology.mdupdated (newbeatcontainer + staging sync data flow) and visually reviewedApplication QA
All steps completed and verified prior to PR creation via
genTests.begin_tracked_job) — re-dispatching an already-COMPLETEmosaic loggedtracked_job_stale_redelivery_skippedand left DB state untouchedcone/project_footprint/bounding_boxmodes — each returned correct tile grids against real project calibration data;overlap_onlytrue/false produced correctly differing tile countsregion_sourcecorrectly rejectedtessellate-tiles) — exact match against the equivalent API callJobConfigurationdispatch linkage — new mosaic dispatch correctly populatedjob_configuration_id/task_namereconcile_stuck_jobs— verified via API, CLI, and Beat cron dispatch, including a per-jobstaleness_timeout_secondsoverride read fromjob_kwargsdiffpype-manage seed-db) — seeded both cron schedules correctlyPeriodicTaskAdminform crash found live during this stepjobs/reconcileerror response — malformedthreshold_secondscorrectly returned 422🤖 Generated with Claude Code