Closed GianPiR closed 1 month ago
hi @GianPiR, promote method does not affect data property https://github.com/OptimalBits/bull/blob/develop/lib/commands/promote-5.lua#L40 we only set delay attribute to 0 and this job is moved to wait state. Data is an object that is stringified so probably you are also calling update method to modify that payload :thinking:
@GianPiR in fact you are seeing two different jobs as the job ids do not match.
Hi, I am using Bull with redis and encountering an issue when promoting delayed jobs. Specifically, a variable name I use in the job data gets changed after the promote.
I pass the following data:
In the delayed queue, all the data appears correctly, including the state_notification_received field:
However, when I promote, the state_notification_received field are replaced by empty string in the job's data:
I don't know if is some reserved word or a problem with redis.