code: private void checkForDeadTenantTasks(Tenant tenant) {
          m_logger.debug("Checking tenant {} for abandoned tasks", tenant);
          try {
              for(DRow row: DBService.instance(tenant).getAllRows(TaskManagerService.TASKS_STORE_NAME)) {
                  TaskRecord taskRecord = buildTaskRecord(row.getKey(), row.getAllColumns(1024).iterator());
                  if (taskRecord.getStatus() == TaskStatus.IN_PROGRESS) {
                      checkForDeadTask(tenant, taskRecord);
                  }
              }
          } catch (Throwable e) {
              m_logger.warn("Unable to check tenant '{}' for dead tasks: {}", tenant.getName(), e.toString());
          }
      }
docs: Look for hung/abandoned tasks in the given tenant.