Auto-announce Celery-based tasks
Base package for myr-stack tasks
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 .
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
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.