[Debug] Correct Unreasonable Long Timeout (#1175)
Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
This commit is contained in:
1 parent
7fcbaa794c
commit
d6f93b0f37
3 files changed
+4
-4
No files matched your search
@@ -253,7 +253,7 @@ class DiffusionEngine:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Give worker enough time — export + compression + table can be slow
|
# Give worker enough time — export + compression + table can be slow
|
||||||
results = self.collective_rpc(method="stop_profile", timeout=60000)
|
results = self.collective_rpc(method="stop_profile", timeout=600)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.error("Failed to stop profiling on workers", exc_info=True)
|
logger.error("Failed to stop profiling on workers", exc_info=True)
|
||||||
return {"traces": [], "tables": []}
|
return {"traces": [], "tables": []}
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class OmniServeCommand(CLISubcommand):
|
|||||||
omni_config_group.add_argument(
|
omni_config_group.add_argument(
|
||||||
"--init-timeout",
|
"--init-timeout",
|
||||||
type=int,
|
type=int,
|
||||||
default=60000,
|
default=600,
|
||||||
help="The timeout for initializing the stages.",
|
help="The timeout for initializing the stages.",
|
||||||
)
|
)
|
||||||
omni_config_group.add_argument(
|
omni_config_group.add_argument(
|
||||||
|
|||||||
@@ -221,8 +221,8 @@ class OmniStage:
|
|||||||
|
|
||||||
# Wait for result from worker
|
# Wait for result from worker
|
||||||
try:
|
try:
|
||||||
# Profiling stop might take time to flush files, give it 180s
|
# Profiling stop might take time to flush files, give it 600s
|
||||||
response = self._out_q.get(timeout=60000)
|
response = self._out_q.get(timeout=600)
|
||||||
|
|
||||||
if isinstance(response, dict):
|
if isinstance(response, dict):
|
||||||
if response.get("type") == "profiler_result":
|
if response.get("type") == "profiler_result":
|
||||||
|
|||||||
Reference in new issue
Block a user