Celery app for mananging tasks and workers
Project description
⚠️ Package Has Been Renamed! ⚠️
This package, cmip_ref_celery, is deprecated and no longer maintained.
It has been renamed to climate-ref-celery.
Please Update Your Dependencies
To continue receiving updates and ensure compatibility, please switch to the new package.
Reason for rename: The rename was necessary to better reflect the purpose and scope of the package.
How to Switch
-
Uninstall the old package:
pip uninstall cmip_ref_celery
-
Install the new package:
pip install climate-ref-celery
-
Update your code/requirements:
- Change any import statements from
import cmip_ref_celerytoimport climate_ref_celery. - Update your
requirements.txt,pyproject.toml,setup.py, or other dependency management files to listclimate-ref-celeryinstead ofcmip_ref_celery.
- Change any import statements from
ref-celery
This package provides celery task generation from Provider and Metric definitions.
CLI tool
The cmip_ref_celery package provides a CLI tool to start a worker instance from a REF metrics 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.
Usage
For example, to start a worker instance for the cmip_ref_metrics_example package:
ref-celery start-worker --package cmip_ref_metrics_example
This requires the cmip_ref_metrics_example package to be installed in the current virtual environment.
If the cmip_ref package is also installed,
the celery CLI command is available via the ref CLI tool.
The equivalent command to the above is:
ref celery start-worker --package cmip_ref_metrics_example
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.
Environment Variables
TODO
Project details
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 cmip_ref_celery-0.4.1.tar.gz.
File metadata
- Download URL: cmip_ref_celery-0.4.1.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.31
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45212cf0b433c70f85efc4597fb656216119ce391266ff24eb507b83ab94005d
|
|
| MD5 |
1e7eaf9af25f2f7063d577ae1f583197
|
|
| BLAKE2b-256 |
f2ce6150d8465c1e65a23561220ad57caeaf3681b2e83ce2755cc269f6dca3ad
|
File details
Details for the file cmip_ref_celery-0.4.1-py3-none-any.whl.
File metadata
- Download URL: cmip_ref_celery-0.4.1-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.31
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1931f440f106302f773bc6dd268ef075e32c13357d63b1ca6050b6be549cc7a0
|
|
| MD5 |
0f84aa0bee140c0b57cdcd65eb9719b3
|
|
| BLAKE2b-256 |
88b8caa2cb9e35a65fb73765e9d15a81888e13dbb211dbaff0906f72379e2058
|