code: public static JobInfo schedule(String name, Runnable task, long delay, long repeat) {
          JobInfo info = new JobInfo(name,delay,repeat);
          Future future = list.remove(info);
          if (future != null && !future.isDone()) future.cancel(false);
  
          ScheduledFuture<?> newFuture = Pools.SCHEDULED.scheduleWithFixedDelay(task, delay, repeat, TimeUnit.SECONDS);
          list.put(info,newFuture);
          return info;
      }
docs: Call from a procedure that gets a <code>@Context GraphDatbaseAPI db;</code> injected and provide that db to the runnable.