#j7-customer-locks
1 messages · Page 1 of 1 (latest)
hello, that sounds like you might be updating Customers really often and retrieving them too. You can have a look at what requests you're making on the customer object and what GETs you're making to that customer object and maybe space them out more. Retrying is the right approach as well.
Is there any relationship between subscriptions or subscriptions schedules and customers? We rarely write to customers but we do make frequent changes to subscriptions and schedules.
there is! when you create or update a Subscription, that grabs a lock on the Customer that the Subscription is for
same for SubSchedule too
Aha, that makes sense
So in general it sounds like a bad idea to retrieve the customer immediately in response to the subscription.updated event
yeah either throw in a delay (or queue up the Customer retrieve calls) or just retry them if you hit a lock timeout