Files
django-q2/django_q/management/commands/testq.py
T

12 lines
273 B
Python

from django.core.management.base import BaseCommand
from django_q import async
class Command(BaseCommand):
help = "My shiny new management command."
def handle(self, *args, **options):
for i in range(20):
async('testq.tasks.multiply', 2, i)