releaseTask method

void releaseTask()

Releases the assigned task without completing it, e.g. when the orchestrator recovers this worker as stuck and returns the task to the pool. Also invalidates any still-in-flight step for that task (see _completeTask).

Implementation

void releaseTask() {
  _activeTask = null;
  currentTaskId = null;
}