mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 02:53:30 +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:
|
while True:
|
||||||
try:
|
try:
|
||||||
task = req_gen.send(result)
|
task = req_gen.send(result)
|
||||||
if isinstance(task, str) and task == EndSentinel():
|
if isinstance(task, EndSentinel):
|
||||||
break
|
break
|
||||||
|
|
||||||
assert isinstance(task, TaskRequest)
|
assert isinstance(task, TaskRequest)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue