¿Algo así? Parece que funciona.
DistributedMutex.synchronize("user_data_update_#{user.id}") do
user.save_custom_fields(true)
end
¿Algo así? Parece que funciona.
DistributedMutex.synchronize("user_data_update_#{user.id}") do
user.save_custom_fields(true)
end