mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 18:48:12 +08:00
Makes it possible to set a schedules group name via q_options dict
This commit is contained in:
+1
-1
@@ -530,7 +530,7 @@ def scheduler(broker=None):
|
|||||||
s.repeats += -1
|
s.repeats += -1
|
||||||
# send it to the cluster
|
# send it to the cluster
|
||||||
q_options['broker'] = broker
|
q_options['broker'] = broker
|
||||||
q_options['group'] = s.name or s.id
|
q_options['group'] = q_options.get('group', s.name or s.id)
|
||||||
kwargs['q_options'] = q_options
|
kwargs['q_options'] = q_options
|
||||||
s.task = tasks.async(s.func, *args, **kwargs)
|
s.task = tasks.async(s.func, *args, **kwargs)
|
||||||
# log it
|
# log it
|
||||||
|
|||||||
Reference in New Issue
Block a user