clearml_agent/commands/worker.py
def test(self):
        # type: () -> TaskStopReason
        """
        Returns whether task should stop and for what reason,
        returns TaskStopReason.no_stop if task shouldn't stop.
        Catches and logs exceptions.
        """
        try:
            return self._test()
        except TaskNotFoundError:
            return TaskStopReason.not_found
        except Exception as ex:
            self.command.log_traceback(ex)
            # make sure we break nothing
            return TaskStopSignal.default

        Returns whether task should stop and for what reason,
        returns TaskStopReason.no_stop if task shouldn't stop.
        Catches and logs exceptions.
        
Returns whether task should stop and for what reason,
returns TaskStopReason.no_stop if task shouldn't stop.
Catches and logs exceptions.
Returns whether task should stop and for what reason returns TaskStopReason . no_stop if task shouldn ' t stop . Catches and logs exceptions .
def test(self):
        try:
            return self._test()
        except TaskNotFoundError:
            return TaskStopReason.not_found
        except Exception as ex:
            self.command.log_traceback(ex)
            return TaskStopSignal.default
def test ( self ) : try : return self . _test ( ) except TaskNotFoundError : return TaskStopReason . not_found except Exception as ex : self . command . log_traceback ( ex ) return TaskStopSignal . default
Returns whether task should stop and for what reason,
returns TaskStopReason.no_stop if task shouldn't stop.
Returns whether task should stop and for what reason returns TaskStopReason . no_stop if task shouldn ' t stop .
# type: () -> TaskStopReason """
        Returns whether task should stop and for what reason,
        returns TaskStopReason.no_stop if task shouldn't stop.
        Catches and logs exceptions.
        """ # make sure we break nothing
self