Sha256: 1c385a4d6494740601d22852fb668d0f2d33fb7d9660acb1a238ae223ca439bf

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dkron-rb-0.9.2 seeds.rb