Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Fornax Cutouts User Documentation

Fornax Cutouts

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:

With future support to include:


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

ConceptDescription
SourceA mission-specific class that maps sky positions to FITS file paths
RegistryDiscovers and holds all registered sources at startup
JobA UWS-compliant async task tracked in Redis
WorkerCelery process that executes cutouts and writes results
StorageLocal filesystem or S3 bucket where cutout files are written