code: private void unclaimTask(ClaimedTask claimedTask, boolean releaseTask) {
          _claimedTasks.remove(claimedTask.getTaskId());
          claimedTask.setComplete(true);
  
          if (releaseTask) {
              try {
                  _scanWorkflow.releaseScanRangeTask(claimedTask.getTask());
                  _log.info("Released scan range task: {}", claimedTask.getTask());
              } catch (Exception e) {
                  _log.error("Failed to release scan range", e);
              }
          }
      }
docs: Unclaims a previously claimed task.  Effectively this stops the renewing the task and, if releaseTask is true,
  removes the task permanently from the workflow queue.