mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-04 08:28:12 +08:00
- changed to single monitor for success and failures - result is now in django model - started addings tests
12 lines
278 B
Python
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)
|