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
I'm moving some AR models to UUID's, instead of auto incremental ID's.
Delayed Job stopped working with that kind of model.
Turns out that the AR_STRING_FORMAT regex used to find the ActiveRecord object assumes that their primary key (id) is made of digits only... which is incorrect when moving to UUID (mix of letters, digits and -).
Fixed it for myself, with the following change in performable_method.rb:
I'm moving some AR models to UUID's, instead of auto incremental ID's.
Delayed Job stopped working with that kind of model.
Turns out that the AR_STRING_FORMAT regex used to find the ActiveRecord object assumes that their primary key (id) is made of digits only... which is incorrect when moving to UUID (mix of letters, digits and -).
Fixed it for myself, with the following change in performable_method.rb:
instead of:
AR_STRING_FORMAT = /^AR:([A-Z][\w:]+):(\d+)$/
use:
AR_STRING_FORMAT = /^AR:([A-Z][\w:]+):([\w-]+)$/
The text was updated successfully, but these errors were encountered: