Skip to main content

Celery app for mananging tasks and workers

Project description

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

cmip_ref_celery-0.3.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmip_ref_celery-0.3.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file cmip_ref_celery-0.3.0.tar.gz.

File metadata

  • Download URL: cmip_ref_celery-0.3.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for cmip_ref_celery-0.3.0.tar.gz
Algorithm Hash digest
SHA256 99c5ff6a55cee3129ee9233993154b21604d3509c58c158feffabcaf755237a7
MD5 844c9ee7035a12efe9b4f472879a0d53
BLAKE2b-256 c9aeebe38884e1f674c805aad9bda94a89a0b9758222d7a9487b34954ded7508

See more details on using hashes here.

File details

Details for the file cmip_ref_celery-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cmip_ref_celery-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5623e0a01f27766b7499b6add7da7866cf5b3713f36110a61dba6af94babcd5
MD5 8b038d0f8946f3fcbb02128fddbcb79b
BLAKE2b-256 fb8d3d827105d72c5803e24cb7b6814fc9fc3dcdd190ccc6ebd464aededf9380

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page