How helmholtz-ufz/cosmosuite works
Cosmo Suite is a domain-free Dash/Celery application framework, with a CSV profiler as its documented reference domain. A consumer app supplies job/configuration seams; the framework provides the shell, job lifecycle and persistence, asynchronous task machinery, and operations pages. The graph emphasizes those stages and the documented logging and error-handling capabilities. Some source is unsampled, so uncertain runtime links are omitted or marked unverified.
Main entry points: job.py Job lifecycle · db_manager.py Database manager · background_job_manager.py Task manager · maintenance_tasks.py Maintenance tasks
Components 23
App shell
- Dash shell
cosmo_suite/layouts.py - Job management
cosmo_suite/pages/job_management.py - Logs page
cosmo_suite/pages/logs.py - Worker management
cosmo_suite/pages/worker_management.py
Job lifecycle
- Job lifecycle
cosmo_suite/job.py - Job base
cosmo_suite/base_job.py - Framework models
cosmo_suite/pydantic_models.py - Job file route
cosmo_suite/files_route.py
Task operations
- Task manager
cosmo_suite/background_job_manager.py - Celery registration
cosmo_suite/celery_app.py - Celery configuration
cosmo_suite/celery_config.py - Maintenance tasks
cosmo_suite/tasks/maintenance_tasks.py
Persistence and support
- Database manager
cosmo_suite/db_manager.py - Object storage
cosmo_suite/object_storage_manager.py - Logging
cosmo_suite/logger.py - Log table view
cosmo_suite/logs_table.py - Error handling
cosmo_suite/error_handling.py - Runtime config
cosmo_suite/config.py
Other components
- Domain app
- App user
- PostgreSQL
- S3-compatible storage
- Celery broker
Connections 26
- Domain app → Job lifecycle: injects seams
README.md - App user → Dash shell: uses app
- Job management → Job lifecycle: manages jobs
cosmo_suite/pages/job_management.py - Job management → Database manager: lists jobs
cosmo_suite/pages/job_management.py - Job management → Maintenance tasks: runs cleanup
cosmo_suite/pages/job_management.py - Job lifecycle → Job base: uses base
cosmo_suite/job.py - Job lifecycle → Framework models: uses config model
cosmo_suite/job.py - Job lifecycle → Database manager: persists attributes
cosmo_suite/job.py - Job lifecycle → Object storage: stores job files
cosmo_suite/job.py - Job file route → Job lifecycle: serves job files
cosmo_suite/files_route.py - Celery registration → Task manager: initializes manager
cosmo_suite/celery_app.py - Celery registration → Maintenance tasks: registers tasks
cosmo_suite/celery_app.py - Task manager → Celery configuration: loads config
cosmo_suite/background_job_manager.py - Celery configuration → Runtime config: reads settings
cosmo_suite/celery_config.py - Task manager → Celery broker: dispatches tasks
- Worker management → Task manager: monitors workers
cosmo_suite/pages/worker_management.py - Maintenance tasks → Database manager: cleans job records
cosmo_suite/tasks/maintenance_tasks.py - Maintenance tasks → Object storage: deletes job data
cosmo_suite/tasks/maintenance_tasks.py - Logs page → Database manager: queries logs
cosmo_suite/pages/logs.py - Logs page → Log table view: renders log table
cosmo_suite/pages/logs.py - Database manager → PostgreSQL: reads and writes
- Object storage → S3-compatible storage: transfers objects
cosmo_suite/object_storage_manager.py - Database manager → Runtime config: reads settings
cosmo_suite/db_manager.py - Object storage → Runtime config: reads settings
cosmo_suite/object_storage_manager.py - Job lifecycle → Error handling: uses job errors
cosmo_suite/job.py - Dash shell → Error handling: mounts error UI
cosmo_suite/layouts.py