mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
fix: meta-reference parallel utils bug, use isinstance not equality
This commit is contained in:
parent
70488abe9c
commit
a5d6ab16b2
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ def worker_process_entrypoint(
|
|||
while True:
|
||||
try:
|
||||
task = req_gen.send(result)
|
||||
if isinstance(task, str) and task == EndSentinel():
|
||||
if isinstance(task, EndSentinel):
|
||||
break
|
||||
|
||||
assert isinstance(task, TaskRequest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue