Tilak Maddy
12/02/2021, 10:29 AMAnna Geller
concept of “pausing” and “unpausing” a DAGthe equivalent of this would be pausing a schedule. You can do that in Prefect either from the UI or using the set_schedule_inactive mutation:
from prefect.client.client import Client
client = Client()
flow_id = {"flow_id": "2a6897de-e148-42fc-910e-2c36ddfd5605"}
response = client.graphql(
"""
mutation($flow_id: UUID!) {
set_schedule_inactive(input: {flow_id: $flow_id}) {
success
error
}
}""",
variables=flow_id,
raise_on_error=True,
)
print(response)
Anna Geller
Tilak Maddy
12/02/2021, 10:52 AMAnna Geller