add scheduler in ruby
sync code