Skip to content

Commit

Permalink
Try fixing race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
LourensVeen committed Jun 6, 2023
1 parent 3855303 commit aac82cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libmuscle/python/libmuscle/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,13 +687,13 @@ def _connect(self) -> None:
def _deregister(self) -> None:
"""Deregister this instance from the manager.
"""
deregister_event = ProfileEvent(
ProfileEventType.DEREGISTER, ProfileTimestamp())
self.__manager.deregister_instance()
self._profiler.record_event(deregister_event)
# deregister_event = ProfileEvent(
# ProfileEventType.DEREGISTER, ProfileTimestamp())
# self._profiler.record_event(deregister_event)
# this is the last thing we'll profile, so flush messages
self._profiler.shutdown()
_logger.info('Deregistered from the manager')
self.__manager.deregister_instance()
# _logger.info('Deregistered from the manager')

def _setup_checkpointing(self) -> None:
"""Setup checkpointing.
Expand Down

0 comments on commit aac82cf

Please sign in to comment.