Skip to main content

Schedulable jobs

Each batch job is contained within its own Apex class and needs to be scheduled for execution. The following jobs are available:

Note: Strings associated with Unpaywall and Digital Science are only available for those specific products.

Schedulable jobs
Apex class nameDescriptionString
CM_CacheSObjectMetadataSchedulableClears the metadataAPI partition every hour.System.schedule('CM_Cache_Task_Metadata_Job', '0 0 * * * ?', new mvn.CM_CacheSObjectMetadataSchedulable('Task'));
CM_CancelExpiredCheckedOutDocumentsBatchCancels documents that have been checked out to Microsoft 365 for 180 days or more. :::: note ::: title ::: Mavens recommends running the CM_CheckOutExpirationSchedulable job alongside this CM_CancelExpiredCheckedOutDocumentsBatch job to be notified about documents that are about to hit the 180-day limit in Microsoft 365. This is because once documents are checked out to Microsoft 365 for 180 days or more, they become "expired" and are no longer accessible. ::::System.schedule('CM_CancelExpiredCheckedOutDocumentsBatch', '0 0 * * * ?', new mvn.CM_CancelExpiredCheckedOutDocumentsBatch());
CM_CheckOutExpirationSchedulableSends email notifications to users who have checked out Document Version records that are about to expire in Microsoft 365. The email notifications will be sent out 20, 10, 5, 4, 3, 2, and 1 day(s) before the document version expires in Microsoft 365 (i.e., 160, 170, 175, 176, 177, 178, and 179 days after the document version was initially checked out to Microsoft 365).System.schedule('CM_CheckOutExpirationSchedulable', '0 0 * * * ?', new mvn.CM_CheckOutExpirationSchedulable());
CM_ScheduledPublishJobPublishes pending documents scheduled for publication.System.schedule('CM_Scheduled_Publish_Job_1', '0 0 * * * ?', new mvn.CM_ScheduledPublishJob());
System.schedule('CM_Scheduled_Publish_Job_2', '0 10 * * * ?', new mvn.CM_ScheduledPublishJob());
System.schedule('CM_Scheduled_Publish_Job_3', '0 20 * * * ?', new mvn.CM_ScheduledPublishJob());
System.schedule('CM_Scheduled_Publish_Job_4', '0 30 * * * ?', new mvn.CM_ScheduledPublishJob());
System.schedule('CM_Scheduled_Publish_Job_5', '0 40 * * * ?', new mvn.CM_ScheduledPublishJob());
System.schedule('CM_Scheduled_Publish_Job_6', '0 50 * * * ?', new mvn.CM_ScheduledPublishJob());
PP_DeleteOrphanedContentDocumentsDeletes orphaned Content Document records from the Closed Task API.System.schedule('Delete Orphaned ContentDocument', '0 0 13 * * ?', new mvn.PP_DeleteOrphanedContentDocuments());
PP_DigitalScienceSchedulableIntegrates Pubs Hub journals.System.schedule('Weekly Digital Science Integration', '0 0 19 ? * SAT', new mvn.PP_DigitalScienceSchedulable());
PP_NewUserRequestSchedulableHandles scheduled batches of new user requests.System.schedule('New User Request Hourly Batch Job', '0 0 * * * ?', new mvn.PP_NewUserRequestSchedulable());
PP_Process_PasswordResetSchedules a new user request to reset author passwords at the beginning of every hour.System.schedule('PP_Process_PasswordReset', '0 * * * * ?', new mvn.PP_ResetPasswordRequestService());
PP_Process_PendingDocumentsProcesses pending documents at the beginning of every hour.System.schedule('PP_Process_PendingDocuments', '0 0 * * * ?', new mvn.PP_DocumentRoleCollabSyncSchedulable(5));
Processes pending documents every 30 minutes.System.schedule('PP_Process_PendingDocuments 30', '0 30 * * * ?', new mvn.PP_DocumentRoleCollabSyncSchedulable(5));
PP_UnpaywallSchedulableIntegrates Pubs Hub journals.System.schedule('Daily Unpaywall Integration', '0 0 5 * * ? *', new mvn.PP_UnpaywallSchedulable(1));
PP_UpdateCongressesSchedulableIntegrates Pubs Hub congresses.System.schedule('Daily PubsHub Congress Integration', '0 0 2 * * ? *', new mvn.PP_UpdateCongressesSchedulable(7, 10));
PP_UpdateCongressLocationsSchedulableIntegrates Pubs Hub congress locations.System.schedule('Daily PubsHub Congress Location Integration', '0 0 4 * * ? *', new mvn.PP_UpdateCongressLocationsSchedulable(10));
PP_UpdateJournalsSchedulableIntegrates Pubs Hub journals.System.schedule('Daily PubsHub Journal Integration', '0 0 3 * * ? *', new mvn.PP_UpdateJournalsSchedulable(0, 10));