diff --git a/src/braket/tasks/local_quantum_task.py b/src/braket/tasks/local_quantum_task.py index edd20cb22..e8f4d4756 100644 --- a/src/braket/tasks/local_quantum_task.py +++ b/src/braket/tasks/local_quantum_task.py @@ -42,8 +42,11 @@ def id(self) -> str: return str(self._id) def cancel(self) -> None: - """Cancel the quantum task.""" - # A LocalQuantumTask is already completed, so there is nothing to cancel + """Attempt to cancel the quantum task. + + Since this class is instantiated with the results, there is nothing to cancel. Attempting + to cancel an already completed task is not an error. + """ pass def state(self) -> str: