Dkron.configure do |c| c.host = "localhost:32847" end 5.times do |i| j = Dkron::Job.new j.name = "job_#{i}" j.command = "date" j.schedule = "@every 5s" j.tags = { role: "web" } j.disabled = false ja = Dkron::JobsApi.new ja.create_or_update_job(j) end