Skip to main content

Auto-announce Celery-based tasks

Project description

https://travis-ci.org/Vnet-as/myr-base.svg?branch=master https://codecov.io/gh/Vnet-as/myr-base/branch/master/graph/badge.svg

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


Download files

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

Files for myr.base, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size myr.base-0.1.0.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page