mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-21 07:18:11 +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
|
||||
# send it to the cluster
|
||||
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
|
||||
s.task = tasks.async(s.func, *args, **kwargs)
|
||||
# log it
|
||||
|
||||
Reference in New Issue
Block a user