Skip to main content
A Job is a durable execution record for a Component. Use one when a task must outlive an HTTP request, needs a schedule/event trigger, can take meaningful time, or must leave a reviewable status, logs, retry lineage, and result.

Explore the behavior

Why use a Job instead of an Endpoint

A template defines its execution source, inputs and execution policy. Job History records the run, including who initiated it, the executor and any retry attempts.

Find Jobs by trigger and requester

The Trigger picker loads 20 choices at a time. Search definitions and Components by name, accounts by name or email, and source Jobs by their exact execution ID. Each choice includes its type, so equal names or IDs from different sources remain independent selections. Account and Component choices respect their resource permissions, including restricted Service Account access. Deleted choices appear only when deleted resources are included. Request and manual Retry rows display the initiating user. A low-code Execution from a Job displays that source Job’s name and opens its history details. Event and Schedule keep their names and definition links. Selecting an account finds its initiated Jobs across all source types, independently of the account that executed the work. The API retains separate initiator, executor and creator fields. A mixed Batch or Debounce Job has no single initiating user; inspect its Triggers section for each entry’s initiator and origin.

The limit model

The configured timeout is a hard part of the Job contract. It is checked when the template is created or updated and enforced at execution time. See Limits and quotas for the distinction between platform ceilings, per-instance policy, form validation, and runtime enforcement. The 59-minute limit is intentionally not a substitute for an unbounded worker. Split a longer workflow into idempotent stages, persist the handoff state, and schedule or trigger the next Job. That produces recoverable boundaries and avoids tying one execution to a long-held resource or credential.

Configure a template

The Jobs workspace shows template identity, Component, metadata, actor timestamps, and version. Select a template to open its Details panel: the panel separates Runtime input, Concurrency, Retry, and metadata, and offers Run for a deliberate operator invocation. This separation is useful: it makes the settings that change capacity and duplicate-side-effect risk visible before a run is created.
  1. In Jobs, create a Job template. Select an active Component and its version binding, or select Inline beside Component to enter JavaScript or TypeScript in the editor.
  2. Choose the execution account and set Runtime input, timeout, memory, concurrency, retry and history visibility.
  3. Save the template. Test with a matching Event and follow the exact Job to its result, or select Run on the template for a direct invocation with its required inputs.
A new Job Template follows the latest active Component revision when no digest is selected. For a controlled release, select a verified Component content digest from revision history and set componentDigest in the template. The digest stays meaningful across instances with different local version numbers. When repairing the Component, preserve the Template’s current binding unless the operator explicitly approves a migration. Inline code runs with the same inputs, execution authority, concurrency and retry settings. Each Job keeps the inline source it was admitted with. A retry uses that saved source even if the template was subsequently edited. Saving inline code requires permission to write Components as well as permission to administer Job templates. New inline Job runs expose the return value directly in output.results. A run with no return value produces null. Component-backed Jobs retain their element names in the result map. Existing Job receipts retain their recorded shape.

Runtime input and trigger provenance

The Job Template’s Runtime input is stored as options.input and exposed as api.input().templateInputs. A Job-targeting Event or Schedule supplies its own Runtime input as input on each trigger. In native low-code, use api.walkTriggers() to read full entries in order for single Events, grouped Events and Schedules. Check triggerType before reading an entry. New retained triggers also carry initiatedByUserId and origin, independently of the shared Job executor. The origin keeps the original execution and Assistant conversation references when available. Older Event history may have no initiating account recorded. These audit fields are assigned by the platform; caller-supplied values cannot replace them. A manual Run can span several Jobs when its trigger array reaches the template’s hard batch limit. The Platform API response keeps jobId as the first affected Job and includes every affected ID in ordered jobIds. All parts commit together; inspect each Job’s Triggers section to see its assigned entries.

Trigger a Job from code

Pass the trigger envelope as the second argument to api.triggerJob. Put scheduleFor in the third argument to run later.
Select Run to edit Template inputs and Triggers separately. Template inputs overlay saved defaults for this run; triggers are an ordered array of explicit request envelopes. The Platform API accepts inputs and triggers together in POST /api/v1/automation/template/{jobTemplateId}/run. trigger is shorthand for one entry; use either trigger or triggers. Add scheduleFor to run later. Explicit triggers have a 1 MB serialized limit and no separate item-count limit. The platform assigns REQUEST provenance; an application type does not turn a request into a retained Event. Small trigger sets resolve before execution with deferred: false. Larger sets expose ordered references with deferred: true. Use api.walkTriggers() for complete entries in either case. Payloads are retained once rather than duplicated into each stored Job input. Read the supplied fields from the resulting REQUEST or EXECUTION entry. type is an application label and triggerType identifies the source. message accepts a JSON value. metadata is a JSON object with up to 64 keys and 16 KiB. Keys beginning with __ are reserved. In 1.9.0, update existing native low-code and SDK 4.1.0 calls that passed run values directly as the second argument. For example, change api.triggerJob('Export', { orderId }) to api.triggerJob('Export', { input: { orderId } }). Update the Job Component to read the EXECUTION trigger’s input and use trigger.message for a separate application message. Keep reading old values from templateInputs while Jobs admitted before the upgrade can still run or retry. SDK 4.1.0 deliberately adopts this new envelope contract. Review callers before upgrading the SDK package; published SDK 4.0.0 keeps its original wire contract. The separate REST inputs field and the Job Template branch of api.triggerTarget still apply a shallow overlay. Already published hosted SDK revisions retain their original calling contract.

Produce an atomic Job batch

Native low-code and SDK 4.1.0 can admit several direct Jobs together:
Use 1–100 items and at most 5 MiB of UTF-8 JSON for the complete batch. Acceptance is atomic and returns Job IDs in input order. Each item uses the template’s normal executor, concurrency, retry and timeout settings. With Single mode, each item creates a separate Job. A template configured for Batch or Debounce can collect several items into the same Job; the returned IDs remain ordered and can repeat. Configure this in Jobs → Templates → Execution mode. All source types participate, including Events, Schedules, manual Run and low-code/REST. Preparation also has a 64 MiB per-batch ceiling including materialized template inputs. This ceiling applies to one batch, not to the total work published by an execution. A failed preparation accepts no partial Jobs. The Platform API accepts { items, idempotencyKey } at POST /api/v1/automation/templates/run. Reusing a key with the same ordered payload returns the first accepted Job IDs for that authenticated producer on the instance, across requests or executions. Changing the payload under the same key returns a conflict. The first acceptance retains its provenance. Choose a new key for intentional new work, and preserve page keys when reconciling an uncertain response. Receipts survive Job-history cleanup. Retrying an old key can therefore return IDs whose history has expired; it does not recreate those Jobs. Use a new key only for an intentional new operation. Standalone api.triggerJobs() commits Job admission independently. Use tx.triggerJobs() when rolling back the surrounding business write should also discard the batch. For more work, send bounded pages and await each admission. Ordinary SDK request batching is separate: it groups transport calls and is not a transaction. A successful receipt means accepted, not completed; follow the returned Job IDs.

Stage a Job with a database write

Use tx.triggerJob() in a low-code Component when the Job should be admitted only after a business write commits. This example uses an orders Database with orderId as its primary key and an active Fulfill order Job Template that reads the order ID from the trigger input.
The Component needs Database write access and permission to run the template. After commit, use the returned jobId in Job History to follow execution. For an ordered, idempotent batch that shares the same business transaction, use tx.triggerJobs() with the batch shape above. See transactional automation.

Producer budgets

Native Job, Event and Webhook publications automatically queue in memory when the runtime transfer window is busy. Normal Promise.all and Promise.allSettled calls wait for capacity instead of failing because their combined queued arguments exceed a fixed byte or call count. There is no cumulative publication-count, byte or attempt allowance for an execution. The runtime transfers at most four calls concurrently, targeting 8 MiB of arguments in flight. A valid individual call larger than this window runs alone; the method’s own payload contract still applies. Waiting snapshots consume the execution’s configured memory, and retaining application data or all results with Promise.all also consumes memory. For very large data sources, an awaited walker keeps application memory smaller. The host preserves caller authorization and Vault context while calls wait. Cancellation and deadlines prevent queued work from starting. Local child work shares the active window; this is not an instance-wide rate or storage quota. Independent SDK transport limits, per-request Job batch limits and existing Event/Webhook payload limits still apply. Event subscriptions can fan out asynchronously, so observe queue depth, execution concurrency and retained database history.

Inspect a Job’s triggers

Open Triggers in Job details. The server-side table pages through source metadata in input order without loading every message. Select a row to load its payload in the read-only JSON editor. Source and definition links open the matching Event, Schedule or originating execution when available. Request and Execution entries use the same view. Vault-protected input stays masked, including selected-payload reads. Unavailable retained data produces an explicit loading error. Historical payloads above the inspection limit use a bounded preview; this does not change execution or walker input. Use the Single, Batch, and Debounce simulations to inspect the input of Jobs created by Event subscriptions.

Limit concurrent Jobs per key

Open Concurrency on the Job Template and set Dynamic key path to a JSON Pointer such as /message/priceListId for Event messages or /templateInputs/priceListId for template values. With a limit of 1, Jobs for the same value wait for a slot. Jobs for other values can run in parallel. The limit applies to whole Job executions. Select Browse history to open the Job history for this template. Filter the grid and select a row to inspect its payload. For grouped Jobs, switch between triggers in the preview. Pick a scalar field such as message.pricelists[0] to set the JSON Pointer /message/pricelists/0 in the form. The dialog stays open while you compare runs. In the Platform API, use options.concurrency.keyPath. An optional options.concurrency.key shares the namespace with other templates that use the same key. Leaving it blank scopes dynamic slots to this template. A static key without a path works as before. Missing values, objects, arrays, and mixed values in a group use one fallback slot for the configured concurrency limit. For a grouped Event, an Event field such as /message/priceListId must resolve to the same scalar for every trigger to use that value’s slot. Configure the Job Template’s dynamic key to select the same field. Single Events and homogeneous groups can then share a slot. Use /input/priceListId if both Event and Schedule Jobs set that value in their own Runtime input and should share a slot. A retry uses the same saved inputs.

Choose and retain the executor

executionPolicy selects who executes the Job. A direct Platform API or MCP invocation requires the caller’s automation permissions. Triggering a Job inside an Endpoint checks the Endpoint’s execution account for those permissions. For Single execution, the following policies apply: For Batch and Debounce, the template’s configured triggerUser or Service Account executes the whole Job. Otherwise the Job inherits an instance Jobs Service Account, then falls back to the established instance Job account or System. CALLER does not reject authorized admissions or select the first caller as the batch executor. The initiating account and Assistant conversation do not split collection. Grouping mode comes from the Job Template’s delivery configuration. Use a dedicated Service Account for unattended work. A selected Service Account and triggerUser must name the same account. For Single, CALLER also requires clearing triggerUser; Batch and Debounce retain that binding as their shared executor when present. Clear the legacy alias with null when replacing it. The Endpoint compatibility migration preserves existing instance Job defaults and template bindings. Jobs capture their executor when the durable record is created. A mixed Batch or Debounce Job has an independent Job origin and no single job-level initiator; each trigger keeps its own initiatedByUserId and origin. api.currentUser() returns that executor; Jobs do not have the Endpoint’s separate business-identity setting. History distinguishes executionUserId from initiatedByUserId. A retry keeps the original executor and initiator even if a Template or instance default changes, and rechecks the executor’s availability and current permissions before running. For example, a human user invokes an Endpoint executing as System with Caller business identity. If that Endpoint triggers a Single CALLER Job, the Job executes as System, api.currentUser() in the Job is System, and initiatedByUserId remains the original human user. A Template selecting a different Service Account uses that account instead. The Job executor’s roles authorize operation families, while resource ACLs determine access to particular Databases, Storage objects, and other restricted targets. Configured administrator Service Account execution also requires approved Component and library code. An approval failure produces a terminal error rather than repeatedly retrying unapproved code; inspect the failure and approve the intended executable version before starting new work. The platform rejects retry backoff above 30 days before queueing. If an absolute requested run time becomes due while the request is being processed, the Job is dispatched immediately; the queue is never given a timestamp in the past.

What a Job gives you

The durable record makes these questions answerable after the caller has gone away:
  • Did the work start, remain pending, get cancelled, expire, finish, or error?
  • Which component version and execution principal were selected?
  • Which input/result fields were intentionally hidden from history?
  • Was this a retry child, and what happened on the preceding attempt?
  • Did a downstream artifact exist and finalize successfully?

Design for retries and timeouts

A Job can produce an external effect before its outcome is confirmed. Application retries or a deliberate new run can repeat that effect. A timeout, worker interruption or failed response does not prove that the remote service made no change; retry policy is not a guarantee of successful delivery or exactly-once effects.
  1. Create an idempotency key per business effect before calling the provider.
  2. Store/check the provider correlation ID before scheduling a retry.
  3. Make each stage independently safe to run again.
  4. Keep remote calls, large file work, and database writes bounded.
  5. Use a concurrency key for a shared account, file, or customer when two writes would conflict.
  6. Break work approaching the timeout into resumable chunks; write a checkpoint to a Table or Storage before enqueueing the next chunk.
Do not increase timeout, memory, or retry count merely to hide a failing workflow. Use the Job’s logs, trace, selected version, and retry lineage to establish the failed boundary first.

Operate a Job

Use Jobs → Job History to inspect an exact Job ID, its status, current/selected version, logs, timing, and retry root. “Accepted” means the request created or scheduled durable work; it is not a success result. Confirm FINISHED or a finalized artifact before notifying users or triggering a dependent business process. Long-running Assistant low-code appears as an AI Inline Code Job. Its details show the saved code, attempt status and bounded result. Executed by identifies the account when it both initiated and ran the Job. Distinct accounts appear separately. To stop an inline execution, use Cancel in its details and wait for the terminal status. For request and execution origins, choose Execution in the Observability row below Attempt status. To inspect the Job itself, use the Execution action in Logs. If the log source is unavailable, use Retry in the Logs warning to query the source again. For Jobs started by an Event or Schedule, the Trigger reference identifies the definition that started the Job; the history reference identifies its particular occurrence. For Event Jobs, the definition is resolved from the receipt for that exact Job execution, so two Events targeting the same template remain distinguishable. The list exposes this reference as triggerId and its display name as triggerName. A missing retained definition is shown as unavailable rather than inferred from the template. For a bulk action, review the selected or filtered scope and eligible count before confirmation. After acceptance, View progress opens the background operation. Review processed, skipped and failed counts: a finished operation can include individual failures. Closing its progress view does not cancel accepted work.

Read attempt status and Job result

Job History separates the status of one attempt from the result of its full retry history: Outcome summaries cover attempts created after the 1.6.6 cutover. Existing Job rows remain available, but the upgrade does not rebuild their history; their aggregate result can be empty. A new retry of an older Job summarizes the new attempts only. Work already running during the upgrade can finish normally. Filter Result to distinguish Failed from Succeeded. Recovery after retry has its own icon and tooltip; the filter uses the same icons as the rows. Retry pending includes an accepted retry waiting to start; it does not mean the history has reached a final failure. In progress, Succeeded, Cancelled and Expired describe the other outcomes. These filters apply to the complete query before pagination, rather than only the rows already loaded. For example, an earlier row can show Status: ERROR and Result: Succeeded with the recovery icon. Manual retry starts a fresh automatic retry budget internally, while the displayed attempt number continues within the same Job history. The attempt number displayed on an older row does not become the latest attempt’s number. Once no attempt is running or scheduled and no automatic retry is pending, Retry on an earlier failed or cancelled row starts another manual run. Repeated clicks while its child is still live reuse that child. Bulk-operation replays retain their original result ID, even when that attempt has already finished.

Automation

Configure schedules, events, webhooks, and retry delivery.

Traces and correlation

Investigate execution and handoff failures.

Components

Build the versioned logic a Job executes.

Agent triggers

Use durable Agents when the work requires planning and tool selection, not one fixed Component.

Cancellation and recovery

Cancelling a pending Job prevents execution. Cancelling a running Job records a durable request; its status remains PROCESSING until the worker acknowledges that request or recovery confirms that its execution lease expired. The details panel shows cancellation as pending during that interval. A cancellation request cannot undo an external action that already completed. Accepted Jobs retain their payload, delivery intent and retry lineage independently of transient cache availability. Delivery retries do not create another business attempt. Committed delivery and retry intents are recovered every minute after temporary queue failures. These transport retries keep the accepted Job identity. Auxiliary notification scheduling uses a short wait, so an unavailable queue does not keep a completed Job holding its execution capacity. Fresh matching heartbeats protect an active Job during recovery, including a heartbeat arriving while it is read. Code preparation runs before customer code starts. Its separate compiler limit is 30 seconds; successful preparation taking at least ten seconds produces a warning. A confirmed preparation timeout safely defers the same Job for 30 seconds without consuming a business retry or changing its saved inputs. After three failed preparations, the Job becomes ERROR with EXECUTION_COMPILER_TIMEOUT for review. The existing Concurrency capacity waiting state includes this preparation wait. This recovery applies only before customer code starts; it does not replay an execution whose effects are uncertain. A saved specific version or active release pin remains authoritative; otherwise the next preparation resolves current source. A lost worker with an unknown effect is reported as requiring recovery; inspect the original target before explicitly retrying a write. Automatic retry settings remain separate from infrastructure delivery and do not guarantee exactly-once external effects.

Follow-up execution through Events

Ordinary Component Jobs publish native success, failed-attempt and final-failure signals. Use JOB_EXECUTION_SUCCEEDED to chain a follow-up Job, JOB_ATTEMPT_FAILED to react to each failed attempt, or JOB_EXECUTION_FAILED to act only when no automatic retry remains. Filter by the source Job template and make the follow-up action idempotent. See Job execution Events for the payload, execution-series identity and cycle protection. See Job concurrency for key and slot semantics, and retry policy for attempt limits and backoff. For Event dispatch, Webhook attempts and business-effect guarantees, compare delivery boundaries.
Last modified on November 29, 2026