diff options
Diffstat (limited to 'src/buildstream/_state.py')
-rw-r--r-- | src/buildstream/_state.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/buildstream/_state.py b/src/buildstream/_state.py index 0233dd323..773aa2146 100644 --- a/src/buildstream/_state.py +++ b/src/buildstream/_state.py @@ -112,7 +112,6 @@ class State: self._task_changed_cbs = [] self._task_groups_changed_cbs = [] self._task_failed_cbs = [] - self._task_retry_cbs = [] ##################################### # Frontend-facing notification APIs # @@ -216,20 +215,6 @@ class State: def unregister_task_failed_callback(self, callback): self._task_failed_cbs.remove(callback) - # register_task_retry_callback() - # - # Registers a callback to be notified when a task is to be retried - # - # Args: - # callback (function): The callback to be notified - # - # Callback Args: - # task_id (str): The unique identifier of the task - # unique_id: The unique id of the plugin instance to look up - # - def register_task_retry_callback(self, callback): - self._task_retry_cbs.append(callback) - ############################################## # Core-facing APIs for driving notifications # ############################################## @@ -334,20 +319,6 @@ class State: for cb in self._task_failed_cbs: cb(task_id, element) - # retry_task() - # - # Notify all registered callbacks that a task is to be retried. - # - # This is a core-facing API and should not be called from the frontend - # - # Args: - # task_id (str): The unique identifier of the task - # unique_id: The unique id of the plugin instance to look up - # - def retry_task(self, task_id: str, unique_id: str) -> None: - for cb in self._task_retry_cbs: - cb(task_id, unique_id) - # elapsed_time() # # Fetches the current session elapsed time |