mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 16:38:12 +08:00
Lots of stuff
- changed to single monitor for success and failures - result is now in django model - started addings tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
from django_q.q import Worker
|
||||
from django_q.apps import Worker
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from django_q import q
|
||||
from django_q.apps import defer
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "My shiny new management command."
|
||||
|
||||
def handle(self, *args, **options):
|
||||
q.test()
|
||||
for i in range(20):
|
||||
defer('testq.tasks.multiply', 2, i)
|
||||
|
||||
Reference in New Issue
Block a user