CodeTheChangeUBC/reBOOT

View on GitHub
app/worker/tasks/__init__.py

Summary

Maintainability
A
0 mins
Test Coverage
'''
Module for tasks to be sent on task queue
'''
from celery import task

from app.worker.app_celery import AppTask
from .create_receipt import Receiptor


@task(bind=True, base=AppTask)
def receiptor(self, queryset, total_count):
    receiptor = Receiptor(queryset, total_count)
    return receiptor()