1
0
Fork 0
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:
Mike Perham 2012-09-04 21:33:06 -07:00
parent a09e25dc02
commit 52fce1ca19
2 changed files with 2 additions and 1 deletions

View file

@ -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
-----------

View file

@ -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