1
0
Fork 0
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:
Mike Perham 2019-05-06 09:17:44 -07:00
commit 8cf0fb111b

View file

@ -194,14 +194,14 @@ module Sidekiq
[at, Sidekiq.dump_json(hash)]
})
else
q = payloads.first["queue"]
queue = payloads.first["queue"]
now = Time.now.to_f
to_push = payloads.map { |entry|
entry["enqueued_at"] = now
Sidekiq.dump_json(entry)
}
conn.sadd("queues", q)
conn.lpush("queue:#{q}", to_push)
conn.sadd("queues", queue)
conn.lpush("queue:#{queue}", to_push)
end
end