Celery app for mananging tasks and workers
Project description
climate-ref-celery
This package provides Celery task generation and worker management for the Climate REF (Rapid Evaluation Framework).
The climate_ref_celery package provides a CLI tool(ref-celery) to start a worker instance for a diagnostics provider.
This worker instance will listen for tasks related to a provider and execute them.
The compute engine worker will then collect the results of these tasks and store them in the database.
This allows for the REF to be run in a distributed manner,
with multiple workers running on different machines with a centrally managed database.
Installation
pip install climate-ref-celery
Features
- Distributed task execution for metrics providers
- Worker management and monitoring
- Automatic task routing and scheduling
- Results collection and storage
- Support for multiple worker instances
Usage
Starting a Worker
To start a worker instance for a specific metrics provider:
# Using the standalone CLI
ref-celery start-worker --package climate_ref_pmp
# Or using the main REF CLI
ref celery start-worker --package climate_ref_pmp
Configuration
Each worker instance may not share the same configuration as the orchestrator. This is because the worker may be running on a different machine with different resources available or directories.
Each worker instance requires access to a shared input data directory and the output directory. If the worker is deployed as a docker container these directories can be mounted as volumes.
Each worker instance can be configured independently. Required configurations include:
- Shared input data directory
- Output directory for results
- Database connection settings
Documentation
For detailed documentation, please visit https://climate-ref.readthedocs.io/
Contributing
Contributions are welcome! Please see the main project's Contributing Guide for more information.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file climate_ref_celery-0.13.1.tar.gz.
File metadata
- Download URL: climate_ref_celery-0.13.1.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.31
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
156b9832f4473d2d5f0d9007b74a2b626ff0e58537738bb3adaaf6d9078b844e
|
|
| MD5 |
c49cfbaf50d1c0d55039b0e1ae02f57f
|
|
| BLAKE2b-256 |
a1d5443dd5737c18b5f1c5f62a680a5989ae6cdc659ce3a03c7a2e950d3412c8
|
File details
Details for the file climate_ref_celery-0.13.1-py3-none-any.whl.
File metadata
- Download URL: climate_ref_celery-0.13.1-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.31
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b89bbec7bf0b988e14c44678968b0e9d4dcdcdcff0723cc4893b3d9f5817b8f
|
|
| MD5 |
243c719f6887ad4ffefd6f8a29c72fa4
|
|
| BLAKE2b-256 |
5f411eea9c5ee37aa04b9ebc870889468ccf216780fca46f2885710c32a277f6
|