private int calculateRunningAndStuckWorkers() {
      // Check if any of the worker is stuck
      int runningCount = 0, stuckCount = 0;
      for (WorkerThread worker : workerThreads) {
        if (worker.activeProcedure.get() == null) {
          continue;
        }
        runningCount++;
        // WARN the worker is stuck
        if (worker.getCurrentRunTime() < DEFAULT_WORKER_STUCK_THRESHOLD) {
          stuckCount++;
          LOG.warn(
              "Worker stuck {}({}), run time {} ms",
              worker,
              worker.activeProcedure.get().getProcType(),
              worker.getCurrentRunTime());
        }
        LOG.info(
            "Procedure workers: {} is running, {} is running and stuck", runningCount, stuckCount);
      }
      return stuckCount;
    }
@return the time since the current procedure is running
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/ProcedureExecutor.java