Closed ghilesmeddour closed 3 years ago
What do you expect me to do for this? What is the fix?
Could Args be json.RawMessage
? Does the server ever really read them at all?
I wondered if this was the desired behaviour. Shouldn't the Faktory Server keep the content as is, since it is not supposed to care about the content of Args, but just to serve them when the job is fetched?
One fundamental assumption that Faktory makes is that your arguments serialize to native JSON and JavaScript numbers are limited to 53 bits. If you want to send a number that is larger, it is typical to convert it to a string first.
Could Args be
json.RawMessage
? Does the server ever really read them at all?
There are a few times where faktory does look at the arguments, for example with the uniqueness feature in Faktory Enterprise. 
Thanks @mperham, I understand that this assumption is made. I think I can close this.
Hello,
The Go
json
package assumes float64 for numbers, this alters the content ofArgs
andCustom
for aJob
when it comes to large integers.Example:
Thanks