mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-29 15:58:11 +08:00
12 lines
238 B
Python
12 lines
238 B
Python
from django.core.management.base import BaseCommand
|
|
from django_q.core import Cluster
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = "Starts a Django Q Cluster."
|
|
|
|
def handle(self, *args, **options):
|
|
q = Cluster()
|
|
q.start()
|
|
|