Workflow
1
Create a new/modify an existing DAG in Airflow
pagerduty_key = Variable.get("pagerduty_integration_key")
payload = {
"service_key": pagerduty_key,
"event_type": "trigger",
"description": f"Airflow Pipeline Validation Failed: {error_details['task']}",
"client": "Airflow Data Pipeline",
"details": {
"pipeline_name": error_details['pipeline'],
"failed_task": error_details['task'],
"error_message": error_details['error'],
"failed_validations": error_details.get('failed_validations', []),
"timestamp": error_details['timestamp']
}
} agent_payload = {
"agent_name": agent_name,
"input": [
{
"parts": [
{
"content_type": "text/plain",
"content": agent_message
}
],
"created_at": datetime.now().isoformat() + "Z"
}
]
}
response = requests.post(
"https://app.chicory.ai/api/v1/runs",
headers={
"Content-Type": "application/json",
"Authorization": f"Bearer {agent_token}"
},
json=agent_payload,
timeout=30
)4
Build Github Actions workflow
Last updated