@classmethod
def set_successful(cls, task_id, result):
    """Mark task as successful after run - called by executor.

        :param task_id: an ID of task that should be marked as successful
        :param result: result of task (None for SelinonTaskEnvelope, JSON describing system state for Dispatcher)
        """
    cls.task_successes[task_id] = result
