code: public void remove(final Task task)
    {
      giant.lock();
      try {
        try {
          log.info("Removing task[%s] from activeTasks", task.getId());
          for (final TaskLockPosse taskLockPosse : findLockPossesForTask(task)) {
            unlock(task, taskLockPosse.getTaskLock().getInterval());
          }
        }
        finally {
          activeTasks.remove(task.getId());
        }
      }
      finally {
        giant.unlock();
      }
    }
docs: Release all locks for a task and remove task from set of active tasks. Does nothing if the task is not currently locked or not an active task.
  
  @param task task to unlock