Skip to main content
from intuned_runtime import extend_payload

def extend_payload(*payload: Payload) -> None: ...
Adds additional payloads to the current job execution. Use this for dynamic scheduling—when your automation discovers new work that should be processed as part of the same job run. For example, when scraping a paginated list, you can extend the job with payloads for each subsequent page as you discover them. Implicitly calls extend_timeout to ensure the job has time to process the new payloads.
This function only works in the context of a Job. It has no effect when running automations directly via the API.
Parameters
*payload
required
One or more payloads to add to the job execution.
Returns Returns None.

Payload

from typing import Any, TypedDict

class Payload(TypedDict):
    api: str
    parameters: dict[str, Any]
Properties
api
str
required
The name of the API to execute.
parameters
dict[str, Any]
required
The parameters to pass to the API.