How to test a CRON JOBS

getEndAuctionedItems
getGenerateProfileSlugs
getGenerateMetricSchedule
getEndMetricSchedule
getAwardIdeaBadge
getAwardDistinctBadges
getNotFilledMetricsCount
getNotFilledMetricsCountByEmployee
getSendEvaluationEmailNotifications
getCreateUpcomingCelebrations
getUpdateCelebrations
generateUsersHrisModuleIdentifiers
getGenerateUsersOnboardingChecklists
getGenerateUsersOffboardingChecklists

The URL will be something like /cron/test/{keyword}.

Example is /cron/test/getGenerateProfileSlugs to generate the profile slugs of the users. To know if it’s working, you should be able to see something on the screen like GenerateProfileSlugs {#555}. For error, whoops will be displayed.

Note: Just disregard the prefix get when understanding what it does. Also, some of those will eat a lot of our server resources like the onboarding and offboarding checklist, as well as the metrics-related CRONs.

Note: Only super admin can access to test the CRON.

Leave a Reply

Your email address will not be published. Required fields are marked *