set_deployment_schedule
Configure automated execution timing for Prefect deployments using cron expressions or interval-based scheduling with timezone support.
Instructions
Set a deployment's schedule.
Args: deployment_id: The deployment UUID cron: Cron expression for the schedule interval_seconds: Alternative to cron - interval in seconds anchor_date: Required for interval schedules - the anchor date timezone: Timezone for the schedule
Returns: Updated schedule details
Input Schema
Name | Required | Description | Default |
---|---|---|---|
anchor_date | No | ||
cron | No | ||
deployment_id | Yes | ||
interval_seconds | No | ||
timezone | No |
Input Schema (JSON Schema)
{
"properties": {
"anchor_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Anchor Date"
},
"cron": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Cron"
},
"deployment_id": {
"title": "Deployment Id",
"type": "string"
},
"interval_seconds": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Interval Seconds"
},
"timezone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Timezone"
}
},
"required": [
"deployment_id"
],
"type": "object"
}