Update groveStreams.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Mon, 29 Jul 2019 01:28:32 +0000 (18:28 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Mon, 29 Jul 2019 01:28:32 +0000 (18:28 -0700)
third-party/groveStreams.groovy

index 442560d..9a1b6ea 100755 (executable)
@@ -181,8 +181,8 @@ def rescheduleIfNeeded(evt) {
        }
        if (((atomicState?.poll["last"]?:0) + (delay * 60000) < currentTime) && canSchedule()) {
                log.info "rescheduleIfNeeded>scheduling processQueue in ${delay} minutes.."
-               unschedule        
-               schedule("14:00", processQueue)
+               unschedule()     
+               //schedule("14:00", processQueue)
        }
        // Update rescheduled state
     
@@ -400,7 +400,7 @@ def processQueue() {
 
        if (((atomicState?.poll["rescheduled"]?:0) + (delay * 60000)) < now()) {
                log.info "processQueue>scheduling rescheduleIfNeeded() in ${delay} minutes.."
-               schedule("0 0/${delay} * * * ?", rescheduleIfNeeded)
+               //schedule("0 0/${delay} * * * ?", rescheduleIfNeeded)
                // Update rescheduled state
                atomicState?.poll["rescheduled"] = now()
        }