mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
only update self.exist_prefill_task_signal in v0 (#6064)
* commit * commit * commit --------- Co-authored-by: xiaoluomi <1037819816@qq.com>
This commit is contained in:
@@ -936,11 +936,7 @@ class EngineService:
|
||||
get_request_pool.submit(_fetch_request)
|
||||
|
||||
else:
|
||||
if (
|
||||
len(self.resource_manager.waiting) == 0
|
||||
and (not is_fetching)
|
||||
and self.exist_prefill_task_signal.value[0] == 0
|
||||
):
|
||||
if len(self.resource_manager.waiting) == 0 and (not is_fetching):
|
||||
# Check if the thread pool is still available to avoid submitting tasks to a shutdown thread pool.
|
||||
try:
|
||||
is_fetching = True
|
||||
|
||||
Reference in New Issue
Block a user