mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Change jobid to be hex, not base64, for http safety
This commit is contained in:
parent
a09e25dc02
commit
52fce1ca19
2 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
- Upgrade Celluloid to 0.12
|
||||
- Upgrade Twitter Bootstrap to 2.1.0
|
||||
- Rescue more Exceptions
|
||||
- Change Job ID to be Hex, rather than Base64, for HTTP safety
|
||||
|
||||
2.2.1
|
||||
-----------
|
||||
|
|
|
@ -46,7 +46,7 @@ module Sidekiq
|
|||
item = worker_class.get_sidekiq_options.merge(item)
|
||||
item['retry'] = !!item['retry']
|
||||
queue = item['queue']
|
||||
item['jid'] = SecureRandom.base64
|
||||
item['jid'] = SecureRandom.hex(12)
|
||||
|
||||
pushed = false
|
||||
Sidekiq.client_middleware.invoke(worker_class, item, queue) do
|
||||
|
|
Loading…
Add table
Reference in a new issue