| Name | Type | Description |
|---|---|---|
cron_id* | str | The cron ID to update. |
schedule | str | None | Default: NoneThe cron schedule to execute this job on. Schedules are interpreted in UTC unless a timezone is specified. |
end_time | datetime | None | Default: NoneThe end date to stop running the cron. |
input | Input | None | Default: None |
metadata | Mapping[str, Any] | None | Default: None |
config | Config | None | Default: None |
context | Context | None | Default: None |
webhook | str | None | Default: None |
interrupt_before | All | list[str] | None | Default: None |
interrupt_after | All | list[str] | None | Default: None |
on_run_completed | OnCompletionBehavior | None | Default: None |
enabled | bool | None | Default: None |
timezone | str | tzinfo | None | Default: None |
stream_mode | StreamMode | Sequence[StreamMode] | None | Default: None |
stream_subgraphs | bool | None | Default: None |
stream_resumable | bool | None | Default: None |
durability | Durability | None | Default: None |
headers | Mapping[str, str] | None | Default: None |
params | QueryParamTypes | None | Default: None |
Update a cron job by ID.
client = get_sync_client(url="http://localhost:8123")
updated_cron = client.crons.update(
cron_id="1ef3cefa-4c09-6926-96d0-3dc97fd5e39b",
schedule="0 10 * * *",
enabled=False,
)The input to the graph.
Metadata to assign to the cron job runs.
The configuration for the assistant.
Static context added to the assistant.
Webhook to call after LangGraph API call is done.
Nodes to interrupt immediately before they get executed.
Nodes to interrupt immediately after they get executed.
What to do with the thread after the run completes. Must be one of 'delete' or 'keep'. 'delete' removes the thread after execution. 'keep' creates a new thread for each execution but does not clean them up.
Enable or disable the cron job.
IANA timezone for the cron schedule. Accepts a string (e.g. 'America/New_York') or a datetime.tzinfo instance (e.g. ZoneInfo("America/New_York")).
The stream mode(s) to use.
Whether to stream output from subgraphs.
Whether to persist the stream chunks in order to resume the stream later.
Durability level for the run. Must be one of 'sync', 'async', or 'exit'.
Optional custom headers to include with the request.
Optional query parameters to include with the request.