How to Set Up Batch Scheduling and Blackout Calendars
This article explains how to control the pace of certain background jobs (batch scheduling) and how to block jobs from running on specific dates (blackout calendars).
Batch Scheduling
Batch scheduling lets you limit how many items a job processes each time it runs, so large jobs don't try to process everything at once.
Currently available for the following billing invoice jobs:
- Create Customer Billing Invoices
- Attempt Billing Charges
- Handle Customers to Suspend
How to set it up
- Go to Scheduled Jobs in the top menu.
- Find the job you want to configure and select Batch settings.
- Set the following:
- Enabled: turns batching on or off for this job.
- Batch size: the maximum number of items processed each time the job runs.
- Batch interval (minutes): if there are items left over after a run, the job will automatically run again after this many minutes to continue working through the rest. Leave empty if you don't want automatic follow up runs.
- Save your changes.
Note on timing: the job's own schedule (its cron cadence, e.g. hourly) still determines how often it fires normally. The batch interval only controls automatic follow up runs when a batch is capped and work remains.
Blackout Calendars
Blackout calendars let you block a job from running on specific dates, for example public holidays. You create a calendar once and can attach it to as many scheduled jobs as you like.
How to create a calendar
- Go to Settings > System > Blockout Calendars.
- Select New and give the calendar a name, for example "Public holidays 2026".
- Add dates to the calendar. For each date, choose a type:
- One off date: blocks that exact date only.
- Every [weekday]: blocks that weekday every week (for example, every Sunday).
- Monthly: blocks a specific day of the month, every month (for example, the 1st).
- Yearly: blocks a specific month and day, every year (for example, December 25).
How to attach a calendar to jobs
- Open the blackout calendar you want to use.
- Use the job picker to select which scheduled jobs it should apply to.
- Save your changes. You can add or remove jobs from this picker at any time.
Once attached, any job whose calendar covers today's date will be skipped automatically. This applies whether or not the job also has batch settings enabled.
Exceptions:
- Manually starting a job with Run Now is not affected by blackout dates.
- If you only need to block a recurring weekday, you can also achieve this by adjusting the job's own schedule instead of using a blackout calendar.