# Rufus Sheduler, Dinamic timing changing

**URL:** <https://www.ruby-forum.com/t/rufus-sheduler-dinamic-timing-changing/184829>\
**Category:** Ruby\
**Created:** [March 9, 2010, 11:08am UTC](https://www.ruby-forum.com/t/rufus-sheduler-dinamic-timing-changing/184829 "2010-03-09T11:08:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aldiaz84](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@aldiaz84](https://www.ruby-forum.com/u/aldiaz84)\
**Post date:** [March 9, 2010, 11:08am UTC](https://www.ruby-forum.com/t/rufus-sheduler-dinamic-timing-changing/184829/1 "2010-03-09T11:08:58Z")

</div>

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!
