Fornax Cutouts is a pluggable backend for generating asynchronous FITS image cutouts. The service is built on FastAPI and Celery, and implements the IVOA UWS (Universal Worker Service) standard for async job management. The Celery workers use astrocut (Astropy-based FITS cutouts and previews) to perform the actual cutouts within the pipeline.
The library is designed to be extended: you define mission-specific data sources, register them with the cutout registry, and the framework handles job queuing, worker dispatch, result storage, and API exposure automatically.
Currently the supported filetypes to generate cutouts for in this service are:
FITSImages
With future support to include:
ASDFImages
2D Spectra
Architecture¶
Cloud Infrastructure¶
User sequence¶
Job Lifecycle¶
When a client submits an async cutout request, the job moves through the following states:
Individual cutout tasks within a job run in parallel via a Celery chord. Results are written to Parquet files in batches and are queryable via the results endpoints before the job finishes.
Celery task pipeline¶
On submission, the API enqueues schedule_job, which validates parameters, materializes per-cutout descriptors in Redis, and starts batch_cutouts. Each batch_cutouts run builds a chord: parallel execute_cutout workers (queue cutouts) followed by a single write_results callback (queue high_mem) that appends to Parquet and either schedules the next batch or marks the job complete. See Celery tasks and the async pipeline for task tables, queue notes, and dependency diagrams.
Key Concepts¶
| Concept | Description |
|---|---|
| Source | A mission-specific class that maps sky positions to FITS file paths |
| Registry | Discovers and holds all registered sources at startup |
| Job | A UWS-compliant async task tracked in Redis |
| Worker | Celery process that executes cutouts and writes results |
| Storage | Local filesystem or S3 bucket where cutout files are written |
Quick Links¶
Getting Started — install and run locally
Configuration — all environment variables
CLI Reference — entrypoint for the fornax-cutouts service (
api&worker)API Reference — REST endpoints and Swagger UI
Building a Source — implement your first mission source
Celery tasks — service tasks and task architecture