You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently added faktory_options custom: { unique_for: 1.hour.to_i } to one of our workers and we are now getting:
Faktory::CommandError: json: unsupported value: floating point number when trying to enqueue a job.
We've used the exact line faktory_options custom: { unique_for: 1.hour.to_i } in several other workers without an issue so this is perplexing.
module OurWorkersModule
class OurWorker
include Faktory::Job
faktory_options custom: { unique_for: 1.hour.to_i }
faktory_options queue: 'ourqueue'
....
The text was updated successfully, but these errors were encountered:
You're right. It seems to be isolated to json we are passing into the worker as a param. Ive double checked the json is valid but there seems to be some sort of issue going from json -> faktory redis -> back to json through the gem. Passing the json as a string param and running ruby JSON.parse(param) in the worker perform resolved the issue.
gem version
2.0.0
We recently added
faktory_options custom: { unique_for: 1.hour.to_i }
to one of our workers and we are now getting:Faktory::CommandError: json: unsupported value: floating point number when trying to enqueue a job.
We've used the exact line
faktory_options custom: { unique_for: 1.hour.to_i }
in several other workers without an issue so this is perplexing.The text was updated successfully, but these errors were encountered: