mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-04 21:58:11 +08:00
Replaces list.copy with a slice for python 2.7
This commit is contained in:
+1
-1
@@ -456,7 +456,7 @@ class Chain(object):
|
|||||||
Start queueing the chain to the worker cluster
|
Start queueing the chain to the worker cluster
|
||||||
:return: the chain's group id
|
:return: the chain's group id
|
||||||
"""
|
"""
|
||||||
self.group = async_chain(chain=self.chain.copy(), group=self.group, cached=self.cached, sync=self.sync,
|
self.group = async_chain(chain=self.chain[:], group=self.group, cached=self.cached, sync=self.sync,
|
||||||
broker=self.broker)
|
broker=self.broker)
|
||||||
self.started = True
|
self.started = True
|
||||||
return self.group
|
return self.group
|
||||||
|
|||||||
Reference in New Issue
Block a user