tomykaira/clockwork — Issue #4: Clockwork void value expression (SyntaxError)
Author: uoksana
Created: 2011-12-14 04:50:27+00:00
State: open

I use clockwork for enqueue resqueue jobs. My Clock.rb:

require 'clockwork'
require 'resque'
require ::File.expand_path('../config/boot', __FILE__)
require ::File.expand_path('../config/environment', __FILE__)

module Clockwork
handler do |job|
puts "Running #{job}"
end

every(6.hours, 'db_backup') do
Resque.enqueue(BackupJob)
end
end

After run clock.rb i receive error:

/Users/oksana/.rvm/gems/ruby-1.9.2-p290/gems/haml-3.1.4/lib/haml/util.rb:761:in `class_eval': /Users/oksana/.rvm/gems/ruby-1.9.2-p290/gems/haml-3.1.4/lib/haml/buffer.rb:143: void value expression (SyntaxError)
10:43:44 clock.1 |	from /Users/oksana/.rvm/gems/ruby-1.9.2-p290/gems/haml-3.1.4/lib/haml/util.rb:761:in `block in def_static_method'
10:43:44 clock.1 |	from /Users/oksana/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/set.rb:222:in `block in each'
10:43:44 clock.1 |	from /Users/oksana/.rvm/rubies/ruby-1.9.2-p290/lib