FIX: LifoQueue.get is blocking. Check if the queue is empty instead
This commit is contained in:
parent
55cd937a51
commit
0826dd53a6
1 changed files with 2 additions and 3 deletions
|
@ -108,10 +108,9 @@ class Procedure(object):
|
|||
request = Request.build(request_config)
|
||||
reqs.append(request)
|
||||
|
||||
while not if_config.empty():
|
||||
pending_if = if_config.get()
|
||||
while pending_if:
|
||||
reqs.append(IfProcedure.build(**pending_if))
|
||||
pending_if = if_config.get()
|
||||
|
||||
return procedure_class(name=name, _async=_async, requests=reqs, args=args, backend=backend, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue