}
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
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()
}