A job runtime executes background tasks and workflows, such as reports, file processing and scheduled automation.
The task or workflow defines the work. A run records one execution of it, including its status and outcome.
A daily report
A daily report collects yesterday's orders, calculates totals and produces a summary. A schedule starts it at 08:00. Each day has a separate run, so you can compare yesterday's success with today's failure.
A scheduled daily report
-
Start
The daily schedule creates a new report run.
-
Process
Collect orders and calculate totals.
-
Finish
Produce the summary and record the result.
An API request or manual action can also start background work. A schedule determines when work begins. It isn't the process that performs the work.
Tasks, workflows, and runs
A task names a repeatable operation. A workflow defines coordinated steps and their progress. A schedule triggers a target at specified times.
A run records one execution. A workflow run also records step progress. See the durable execution model for lifecycle and resume behavior.
For the report example, a task can represent the entire report operation. A workflow is useful when collecting orders, calculating totals, and producing the summary need explicit step coordination.
What durable means
Durable execution retains status and progress after the initiating request ends. You can read whether work is pending, running, waiting, completed, failed or cancelled.
Recovery depends on the target and its configured behavior. Retries, resume, and cancellation apply where the runtime supports them. A durable record alone doesn't make an external action safe to repeat.
For example, if a report step sends an email and a later step fails, repeating the entire operation may send the email again. The workflow's design determines how it handles that situation.
How jobs use other runtimes
Background work can use a sandbox when a step needs files or commands. The sandbox supplies the workspace. The task or workflow run records the overall execution.
This differs from a server runtime, which stays available to serve incoming requests. A server can accept the request that starts a job without making the job's lifetime the same as that request.
Next
- Run background work: Create targets, schedules, and runs.
- Workflows: Define coordinated work in Veryfront Code.
Related
- Runs panel: Inspect background execution.
- Runs: Understand lifecycle state and execution history.