Cron jobs
The table below lists some of the cron jobs that we currently have in Luna. Please note that some of these cron jobs originate from the same file in the code (e.g. there are two onboarding cron jobs in this table, but they are executed from the same handler in the backend).
Note: This table is non-exhaustive — many services have scheduled jobs beyond the ones listed here. Check each service's
application.ymlfor the current, complete set ofSchedule:entries.
| Name | Description | Service | Frequency | Date | Time (UTC) |
|---|---|---|---|---|---|
| Reports | Requests all payroll reports to be generated by publishing an individual message for each report | Report | Once a month | 11th of the month | 04:00 |
| Progressions | Retrieves all progression history items where the effectiveFrom timestamp is less than or equal to the day the cron executes & are not yet processed and publishes a message for each one | Andi | Once a day | - | 00:00 |
| Leavers | Retrieves all leaver history items where the contractualEndDate timestamp is less than or equal to the day the cron executes & are not yet processed and publishes a message for each one | Andi | Once a day | - | 00:00 |
| End year carryover (NL) | Carries over Netherlands ANDis' annual leave balance into the new year | Leave | Once a year | 1st January | 02:00 |
| Statutory leave expiration (NL) | Expires Netherlands ANDis' statutory leave entitlement from the previous year | Leave | Once a year | 1st July | 02:00 |
| Ready for onboarding | Retrieves all users of type Candidate where their startDate timestamp is between the day the cron executes & 25 days in the future (retrieves all candidate ANDi’s that are due to start within 25 days) and publishes a message for each one | Onboarding | Once a day | - | 05:00 |
| Ready to start | Retrieves all users of type Employee where their startDate timestamp is the day before the cron executes (retrieves all employee ANDi’s that are on their second day) and publishes a message for each one | Onboarding | Once a day | - | 05:00 |
| Add additional event invitees | Notifies the primary ANDi for new contacts created after an event has been created. The new contacts have to match the event criteria | Events | Once a day | - | 06:00 |
