Auto-announce Celery-based tasks
Project description
Base package for myr-stack tasks
Installation
Development
Create virtualenv and activate it, then proceed to install myr-base for development:
$ git clone https://github.com/Vnet-as/myr-base.git
$ cd myr-base
$ pip install -e .
Usage
from myr.base.app import MyrApp
# just wrapper around Celery
app = MyrApp()
# create tasks as usual Celery tasks
@app.task
def sometask():
do_something()
Do not forget to also run Celery beat, so the auto-announcing feature works.
$ celery beat -A app
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
myr.base-0.1.0.tar.gz
(4.0 kB
view details)
File details
Details for the file myr.base-0.1.0.tar.gz
.
File metadata
- Download URL: myr.base-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 298128b6a434ac382cddd9708f1c5ae9f312a656e8eceb8c4162791788af82e2 |
|
MD5 | a277797a13f5ddc39ab3e5b435cba3d5 |
|
BLAKE2b-256 | bdcb446e2114ab7a6e7233cb6574ad0d9581808c8389a1c4815aa1fc0b6f6cb7 |