examples/example1.rb in daemon_runner-0.3.0 vs examples/example1.rb in daemon_runner-0.4.0

- old
+ new

@@ -35,27 +35,35 @@ def schedule [:interval, 10] end def run!(args) + sleep 10 name = args[0] reason = args[1] puts name puts reason name end + + def task_id + 'long-running-task' + end end end end end class MyService class Tasks class Quiz - def schedule - [:interval, '30s'] + def initialize + @task_id = 'long-running-task' + @schedule = [:interval, '30s'] end + def foo!(args) + sleep 10 puts 'Firing error' sargs end end end