XP 7.7 introduced Scheduler API.
Snapshotter uses cron scheduling extensively and is a perfect candidate for migration.
Benefits:
isMaster call won't be needed. cron job is guaranteed to be run only on a single server in entire cluster. It gives better control to Operations which servers could run snapshots: currently only master nodes are capable of doing it overloading them. New version could be configured with Application Filters https://developer.enonic.com/docs/xp/stable/deployment/config#application
XP 7.7 introduced Scheduler API. Snapshotter uses cron scheduling extensively and is a perfect candidate for migration.
Benefits:
isMaster
call won't be needed. cron job is guaranteed to be run only on a single server in entire cluster. It gives better control to Operations which servers could run snapshots: currently only master nodes are capable of doing it overloading them. New version could be configured with Application Filters https://developer.enonic.com/docs/xp/stable/deployment/config#application