Files
django-q2/django_q/management/commands/testq.py
T
Ilan Steemers 093431e88d Lots of stuff
- changed to single monitor for success and failures
- result is now in django model
- started addings tests
2015-06-16 19:03:00 +02:00

12 lines
278 B
Python

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