mardi 4 août 2015

Create super task to inherit from for celery tasks

I am creating tasks using the @app.task decorator.

@app.task(name=settings.CELERY_TASK_MY_TASK)
def my_task(object_slug):

Is it possible to have those tasks inherit attributes and parameters from a "superclass" kind of task?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire