예제 #1
0
    def teardown(self) -> None:
        """
        Tear down the agent.

        Performs the following:

        - stops the decision maker
        - stops the task manager
        - tears down the resources.

        :return: None
        """
        self.decision_maker.stop()
        self.task_manager.stop()
        self.resources.teardown()
        ExecTimeoutThreadGuard.stop()
예제 #2
0
    def teardown(self) -> None:
        """
        Tear down the agent.

        Performs the following:

        - stops the decision maker
        - stops the task manager
        - tears down the resources.

        :return: None
        """
        self.logger.debug("[{}]: Calling teardown method...".format(self.name))
        self.decision_maker.stop()
        self.task_manager.stop()
        self.resources.teardown()
        ExecTimeoutThreadGuard.stop()
예제 #3
0
 def _teardown(self) -> None:  # pylint: disable=no-self-use
     """Tear down loop on stop."""
     # start and stop methods are classmethods cause one instance shared across muiltiple threads
     ExecTimeoutThreadGuard.stop()