Skip to content

Commit f30eb3f

Browse files
authored
Add files via upload
1 parent c5fa9d2 commit f30eb3f

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

multioptpy/Wrapper/mapper.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2918,13 +2918,18 @@ def _run_batch_parallel(
29182918
except _queue_mod.Empty:
29192919
if not proc.is_alive():
29202920
proc.join()
2921-
logger.error(
2922-
"_run_batch_parallel: AutoTS worker terminated unexpectedly for run %s",
2923-
run_dir,
2924-
)
2925-
self._process_single_result(
2926-
task, run_dir, [], "FAILED", iteration, history_log
2927-
)
2921+
try:
2922+
tag, payload = result_q.get_nowait()
2923+
if tag == "err":
2924+
self._process_single_result(task, run_dir, [], "FAILED", ...)
2925+
else:
2926+
self._process_single_result(task, run_dir, payload, "DONE", ...)
2927+
del active_tasks[pid]
2928+
continue
2929+
except _queue_mod.Empty:
2930+
pass
2931+
logger.error("AutoTS worker terminated unexpectedly...")
2932+
self._process_single_result(task, run_dir, [], "FAILED", ...)
29282933
del active_tasks[pid]
29292934

29302935
if active_tasks:

0 commit comments

Comments
 (0)