patch_dag
Patch DAG configurations in Airflow to update parameters like schedule intervals, concurrency limits, and task statuses efficiently.
Instructions
patch_dag
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dag_display_name | No | ||
dag_id | No | ||
default_view | No | ||
description | No | ||
file_token | No | ||
fileloc | No | ||
has_import_errors | No | ||
has_task_concurrency_limits | No | ||
is_active | No | ||
is_paused | No | ||
is_subdag | No | ||
last_expired | No | ||
last_parsed_time | No | ||
last_pickled | No | ||
max_active_runs | No | ||
max_active_tasks | No | ||
max_consecutive_failed_dag_runs | No | ||
next_dagrun | No | ||
next_dagrun_create_after | No | ||
next_dagrun_data_interval_end | No | ||
next_dagrun_data_interval_start | No | ||
owners | No | ||
pickle_id | No | ||
root_dag_id | No | ||
schedule_interval | No | ||
scheduler_lock | No | ||
tags | No | ||
timetable_description | No | ||
update_mask | No |
Input Schema (JSON Schema)
{
"properties": {
"dag_display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Dag Display Name"
},
"dag_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Dag Id"
},
"default_view": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Default View"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Description"
},
"file_token": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "File Token"
},
"fileloc": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Fileloc"
},
"has_import_errors": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Has Import Errors"
},
"has_task_concurrency_limits": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Has Task Concurrency Limits"
},
"is_active": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Is Active"
},
"is_paused": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Is Paused"
},
"is_subdag": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Is Subdag"
},
"last_expired": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Last Expired"
},
"last_parsed_time": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Last Parsed Time"
},
"last_pickled": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Last Pickled"
},
"max_active_runs": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Max Active Runs"
},
"max_active_tasks": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Max Active Tasks"
},
"max_consecutive_failed_dag_runs": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Max Consecutive Failed Dag Runs"
},
"next_dagrun": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Next Dagrun"
},
"next_dagrun_create_after": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Next Dagrun Create After"
},
"next_dagrun_data_interval_end": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Next Dagrun Data Interval End"
},
"next_dagrun_data_interval_start": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Next Dagrun Data Interval Start"
},
"owners": {
"anyOf": [
{
"items": {},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Owners"
},
"pickle_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Pickle Id"
},
"root_dag_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Root Dag Id"
},
"schedule_interval": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Schedule Interval"
},
"scheduler_lock": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Scheduler Lock"
},
"tags": {
"anyOf": [
{
"items": {},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Tags"
},
"timetable_description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Timetable Description"
},
"update_mask": {
"anyOf": [
{
"items": {},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Update Mask"
}
},
"title": "patch_dag_input",
"type": "object"
}