Closed hiveer closed 2 years ago
Hello @hiveer, could you please check it with a new version of the gem (2.0.0) and report back if the problem is still persist. Thank you!
For:
class TestJob
def perform
puts 'Test!'
end
end
Crono.perform(TestJob).every 5.seconds
I have error:
I, [2022-06-15T13:48:24.697900 #56713] INFO -- : Perform TestJob
E, [2022-06-15T13:48:24.698774 #56713] ERROR -- : Finished TestJob in 0.00 seconds with error: wrong number of arguments (given 1, expected 0)
E, [2022-06-15T13:48:24.698811 #56713] ERROR -- : /home/danyil/Desktop/telegram_bot_app/config/cronotab.rb:9:in `perform'
Hello @anko20094 thank you for the reporting. It should be fixed in the master.
My configuration is like this: