Run Profile Cronjob on one instance only
in progress
Ivan Ligotino
The BE instantiates a cron job to perform certain operations on user profiles, such as identifying users with birthdays and sending notifications. Since we have multiple BE instances running ath the same time, and each one creates its own cron job, these operations are executed multiple times simultaneously.
To prevent this, we can leverage the shared lock provided by Murlock to
ensure that the required operations are executed by only one instance
. Note:
The cron jobs will still be instantiated on all instances, but only one will actually execute the operations.Log In
Rambod Rahmani
in progress