コード例 #1
0
ファイル: result.py プロジェクト: rlotun/celery
    def waiting(self):
        """Is the taskset waiting?

        :returns: :const:`True` if any of the tasks in the taskset is still
            waiting for execution.

        """
        return any(not subtask.ready() for subtask in self.itersubtasks())
コード例 #2
0
ファイル: result.py プロジェクト: rlotun/celery
    def failed(self):
        """Did the taskset fail?

        :returns: :const:`True` if any of the tasks in the taskset failed.
            (i.e., raised an exception)

        """
        return any(subtask.failed() for subtask in self.itersubtasks())
コード例 #3
0
    def waiting(self):
        """Is the taskset waiting?

        :returns: :const:`True` if any of the tasks in the taskset is still
            waiting for execution.

        """
        return any(not subtask.ready() for subtask in self.itersubtasks())
コード例 #4
0
ファイル: result.py プロジェクト: tarequeh/celery
    def failed(self):
        """Did the taskset fail?

        :returns: ``True`` if any of the tasks in the taskset failed.
            (i.e., raised an exception)

        """
        return any((not subtask.successful() for subtask in self.itersubtasks()))
コード例 #5
0
    def failed(self):
        """Did the taskset fail?

        :returns: :const:`True` if any of the tasks in the taskset failed.
            (i.e., raised an exception)

        """
        return any(subtask.failed() for subtask in self.itersubtasks())