Skip to content

Commit 6d0f9d2

Browse files
committed
cleaning up debugging, removing comm from Executor upon worker exiting
1 parent f30233c commit 6d0f9d2

5 files changed

Lines changed: 1 addition & 11 deletions

File tree

libensemble/comms/comms.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,6 @@ def terminate(self, timeout=None):
255255
self.handle.join(timeout=timeout)
256256
if self.running:
257257
raise Timeout()
258-
self.handle = None
259-
self.inbox = None
260-
self.outbox = None
261258

262259

263260
class QCommProcess(QCommLocal):
@@ -277,6 +274,3 @@ def terminate(self, timeout=None):
277274
self.handle.join(timeout=timeout)
278275
if self.running:
279276
raise Timeout()
280-
self.handle = None
281-
self.inbox = None
282-
self.outbox = None

libensemble/comms/logs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ def exit_logger():
204204
stat_timer.stop()
205205
stat_logger.info(f"Exiting ensemble at: {stat_timer.date_end} Time Taken: {stat_timer.elapsed}")
206206
stat_logger.handlers[0].close()
207-
print("Manager logger closed")
208207

209208
# If closing logs - each libE() call will log to a new file.
210209
# fh.close()

libensemble/libE.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,6 @@ def kill_proc_team(wcomms, timeout):
460460
wcomm.result(timeout=timeout)
461461
except Timeout:
462462
wcomm.terminate()
463-
wcomm.handle = None
464-
wcomm.inbox = None
465-
wcomm.outbox = None
466463

467464

468465
def libE_local(sim_specs, gen_specs, exit_criteria, persis_info, alloc_specs, libE_specs, H0):

libensemble/manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ def _kill_workers(self) -> None:
304304
self.wcomms[w].send(STOP_TAG, MAN_SIGNAL_FINISH)
305305
if w == 0:
306306
self.wcomms[0].result()
307-
self.wcomms[0] = None
308307

309308
# --- Checkpointing logic
310309

libensemble/worker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,4 @@ def run(self) -> None:
415415
self.gen_runner.shutdown()
416416
self.sim_runner.shutdown()
417417
self.EnsembleDirectory.copy_back()
418+
Executor.executor.comm = None

0 commit comments

Comments
 (0)