7 lines
245 B
Python

from django.core.management.base import BaseCommand
from inventory.tasks import long_running_task
from django_q.tasks import async_task
class Command(BaseCommand):
def handle(self, *args, **kwargs):
async_task(long_running_task, 20)