Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.
/ myr-base Public archive

Base package for building MyrStack tasks

Notifications You must be signed in to change notification settings

Vnet-as/myr-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myr.base

https://travis-ci.org/Vnet-as/myr-base.svg?branch=master

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

About

Base package for building MyrStack tasks

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages