mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge branch 'master' of github.com:mperham/sidekiq
This commit is contained in:
commit
8cf0fb111b
1 changed files with 3 additions and 3 deletions
|
@ -194,14 +194,14 @@ module Sidekiq
|
||||||
[at, Sidekiq.dump_json(hash)]
|
[at, Sidekiq.dump_json(hash)]
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
q = payloads.first["queue"]
|
queue = payloads.first["queue"]
|
||||||
now = Time.now.to_f
|
now = Time.now.to_f
|
||||||
to_push = payloads.map { |entry|
|
to_push = payloads.map { |entry|
|
||||||
entry["enqueued_at"] = now
|
entry["enqueued_at"] = now
|
||||||
Sidekiq.dump_json(entry)
|
Sidekiq.dump_json(entry)
|
||||||
}
|
}
|
||||||
conn.sadd("queues", q)
|
conn.sadd("queues", queue)
|
||||||
conn.lpush("queue:#{q}", to_push)
|
conn.lpush("queue:#{queue}", to_push)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue