mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 17:11:21 +08:00
[BugFix][Optimization] Replace silent failures with catchable exceptions and informative error messages (#6533)
* init * init * fix format * add * add files * add ut * fix some * add ut * add more * add * fix pre-commit * fix pre-commit * fix cover * skip long seq * add * add * fix * remove not need * fix set attr * fix comments * fix comments * fix failed tests --------- Co-authored-by: gongweibao <gognweibao@baidu.com>
This commit is contained in:
@@ -797,7 +797,9 @@ class EngineWorkerQueue:
|
||||
if len(self.finished_add_cache_task_list) > 0:
|
||||
response = self.finished_add_cache_task_list[0]
|
||||
for tmp_response in self.finished_add_cache_task_list:
|
||||
assert tmp_response == response
|
||||
assert (
|
||||
tmp_response == response
|
||||
), f"Inconsistent responses across workers: expected {response}, got {tmp_response}"
|
||||
self.finished_add_cache_task_list[:] = list()
|
||||
self.client_get_finished_add_cache_task_flag[:] = [0] * self.num_client
|
||||
self.can_put_next_add_task_finished_flag.set(1)
|
||||
|
||||
Reference in New Issue
Block a user