Allow different broker on chain (#156)

This commit is contained in:
Stan Triepels
2024-03-02 22:45:40 +01:00
committed by GitHub
parent 88430c9014
commit 782b1de60d
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -569,10 +569,10 @@ class Chain:
A sequential chain of tasks
"""
def __init__(self, chain=None, group=None, cached=Conf.CACHED, sync=Conf.SYNC):
def __init__(self, chain=None, group=None, cached=Conf.CACHED, sync=Conf.SYNC, broker=None):
self.chain = chain or []
self.group = group or ""
self.broker = get_broker()
self.broker = broker or get_broker()
self.cached = cached
self.sync = sync
self.started = False