Jobs
How a generation job moves from pending to completed, how to follow each item in a batch, and how to filter and cancel jobs.
User guide navigation
On this page
Jobs
Every request to generate a document starts a job, whether it is one document or a batch. The job follows the request from start to finish. Use this page when you need to find out where a request stands or why documents are missing.
Job lifecycle
A job moves through these states. The Generation page shows them as words, the API as lowercase values such as in-progress.
| State | Description |
|---|---|
| Pending | The job is waiting for a worker to take it. |
| In progress | The items of the job are being rendered. |
| Completed | Every item is done. Some items may have failed; check them one by one. |
| Failed | The job itself could not run. |
| Cancelled | The job was cancelled before it was done. |
Follow each item in a batch
Each document in a job is a separate item with its own state: pending, in progress, completed, failed, or cancelled. Epistola renders each item on its own. If one item fails, the other items carry on.
An item fails when its data does not match the data contract, or when rendering fails. The failed item has an error message that says why. Epistola checks the data when it renders the item, not when it accepts the request.
A connected system lists the items of a job through the API, page by page, and can ask for only the failed ones. A batch holds up to 10,000 items.
Filter jobs
On the Generation page you can filter the recent jobs by status. Through the API you can also filter jobs by status.
Cancel a job
A job that is pending or in progress can be cancelled through the API. Items that were not rendered yet get the state cancelled. The Generation page has no cancel button.
Job retention
Epistola deletes old jobs and generated documents automatically. The operator of your installation sets how long Epistola keeps them.
The monthly figures on the Generation page stay after the jobs and documents are deleted.
In the UI
The Generation page shows totals, documents per month, the most used templates, and a table of recent jobs. For each job you see the template, the variant, the status, an error message if there is one, and when the job was created and completed. Each status has a colored badge:
- no color: pending
- terracotta: in progress
- green: completed
- red: failed
- amber: cancelled
You need a role that can read documents, Generator or Document reader, to see the Generation page.
Epistola is open source, not free of cost. The organisations that use it fund its development, through Epistola or an Official Partner. We are steward-owned: fair prices, no profit maximisation. How Epistola is funded →