Rufus Sheduler, Dinamic timing changing

A

Alvaro Di

Hi!

In my app, i'm using Rufus Sheduler to shedule some automatic tasks, my
problem is that i want to set the frecuency of this task from an
external VAR.
Actually i have something like this: (simplify)

repeat = Rufus::Scheduler::plainScheduler.start_new # create a shedule
process

blabla...

repeat.every "VAR" :blocking => true do
blabla...
end

repeat.join
It's works fine, but when i update "VAR" (i.e. 2s to 8s) , the frecuency
does not update the value, it continues doing the task every 2s...

What it's the way to update this value at the sheduling?

Thaks a lot!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top