Sha256: e367166fdb565cdff01f6b6b91ddb3c185c9eb6053f4cd9665e9b3fb4de7521f

Contents?: true

Size: 329 Bytes

Versions: 1

Compression:

Stored size: 329 Bytes

Contents

Dkron.configure do
  |c| c.host = "localhost:8080"
end

5.times do |i|
  j = Dkron::Job.new
  j.name = "job_#{i}"
  j.executor = "shell"
  j.executor_config = {
    "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.10.0 seeds.rb