seeds.rb in dkron-rb-0.9.2 vs seeds.rb in dkron-rb-0.10.0
- old
+ new
@@ -1,12 +1,15 @@
Dkron.configure do
- |c| c.host = "localhost:32847"
+ |c| c.host = "localhost:8080"
end
5.times do |i|
j = Dkron::Job.new
j.name = "job_#{i}"
- j.command = "date"
+ j.executor = "shell"
+ j.executor_config = {
+ "command": "date"
+ }
j.schedule = "@every 5s"
j.tags = {
role: "web"
}
j.disabled = false