Skip to main content

Celery app for mananging tasks and workers

Project description

climate-ref-celery

PyPI version Documentation Status License Python Version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

climate_ref_celery-0.6.5.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

climate_ref_celery-0.6.5-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file climate_ref_celery-0.6.5.tar.gz.

File metadata

  • Download URL: climate_ref_celery-0.6.5.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.31

File hashes

Hashes for climate_ref_celery-0.6.5.tar.gz
Algorithm Hash digest
SHA256 86ea4d343512d495abe69989a99ea4e57cf5f04b56feb4c57fc83a26f8a11726
MD5 8cc2b880cb44f7ba3f497357e21af78c
BLAKE2b-256 f413e3ed2d93e49d2bc4ca4dc4f585323879a96c21e366501cd3a277fb4438e6

See more details on using hashes here.

File details

Details for the file climate_ref_celery-0.6.5-py3-none-any.whl.

File metadata

File hashes

Hashes for climate_ref_celery-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3927417086917fdcca0c6596ef2b3dfb7c3645a325a080cb478450ac799df509
MD5 78044794ff8912d4f4531e0b7f78e5c6
BLAKE2b-256 d29c22e1936b2fa6f74e49d40fa3339599875b727d8d538ca945029127eee959

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