You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Airflow
Is there a way to delete some manually triggered dag runs along with their tasks?
Thanks in advance,
Sergei.
Maxime Beauchemin
unread,
Mar 5, 2016, 3:16:47 PM3/5/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Airflow
Only through the UI for now, no CLI utility to do that yet... You can always `from airflow.model import DagrRun` and use the ORM to delete them programmatically.
Sergei Iakhnin
unread,
Mar 6, 2016, 2:34:04 PM3/6/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Airflow
Ah, ok. Does the latter delete things cleanly, with their associated tasks and jobs?
Maxime Beauchemin
unread,
Mar 7, 2016, 10:45:27 PM3/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Airflow
No, deleting DagRuns doesn't affect related task instances.
Tyrone Hinderson
unread,
Mar 17, 2016, 12:47:35 PM3/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Airflow
As far as I understand, DagRuns exist solely to help the scheduler keep track of what tasks it can run. They are created by external and time-based triggers, and deleted only manually. Depending on a DAG's schedule, a deleted DagRun might be quickly replaced but no running tasks should ever be effected.