Skip to content

Fase1 astrocut - #67

Merged
glaubervila merged 27 commits into
mainfrom
fase1_astrocut
Jun 21, 2026
Merged

Fase1 astrocut#67
glaubervila merged 27 commits into
mainfrom
fase1_astrocut

Conversation

@glaubervila

Copy link
Copy Markdown
Contributor

No description provided.

glaubervila and others added 27 commits April 26, 2026 11:52
…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>
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
glaubervila marked this pull request as ready for review June 21, 2026 14:09
@glaubervila
glaubervila merged commit 1c732e0 into main Jun 21, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants