docs: public static void waitUntilJobEnded(Key jobkey, int pollingIntervalMillis) {
      while (true) {
        if (Job.isEnded(jobkey)) {
          return;
        }
  
        try { Thread.sleep (pollingIntervalMillis); } catch (Exception ignore) {}
      }
    }