Fase1 astrocut - #67
Merged
Merged
Conversation
…guration - Introduced AGENTS.md for global instructions for coding agents. - Added ANALISE_CUTOUT_PROTOTIPO.md for prototype analysis and implementation details. - Created PLANO_SYNC_IVOA_DES_DESCOBERTA.md outlining the sync cutout implementation plan. - Added CLAUDE.md for agent instructions specific to the Cutout Service. - Updated test logging configuration in settings to enhance log management. - Added justfile for local development orchestration and command management. - Updated .gitignore to include new file patterns for original files and tiles. - Modified .pre-commit-config.yaml to adjust excluded paths for pre-commit checks. Co-authored-by: Copilot <copilot@github.com>
…acy PNG follow-up
Introduce a Task model (1-to-1 with each Celery execution unit) so that every combination of stencil × band × format × engine has an independent lifecycle in the database. Key changes: - New Task model (cutout/service/models/task.py) stores all cutout parameters at job creation time; migration 0004_task.py included. - Policy.create_tasks_for_job() creates Task rows after job and parameter rows are saved (called from JobService.create()). - dispatch_async() reads Tasks from DB instead of re-expanding params; passes only (job_id, task_id) to each Celery signature. - run_cutout_for_pos() is now fully self-contained: reads Job and Task from DB, manages its own PENDING → EXECUTING → COMPLETED/ERROR transitions via filter().update() for concurrency safety, and creates its own JobResult. - finalize_job() only marks the Job COMPLETED; does not touch Tasks or create JobResults. - TaskSerializer added and embedded in AsyncJobDetailSerializer. - TaskInline added to JobAdmin; standalone TaskAdmin registered. Result: 1 POS + 3 bands → 1 Job, 3 Tasks, 3 JobResults — each Task executes and reports independently.
glaubervila
marked this pull request as ready for review
June 21, 2026 14:09
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.
No description provided.