Hi Christian,

I believe you can achieve this by going to 'Browse > Dag Runs'. Find the DAG 
run you wish to stop and click the check box on the left. Next, click 'With 
selected' and set it to either 'success' or 'failed'.


I believe this will prevent any further tasks in the DAG run from running but 
will let the currently running tasks complete.


If you wish to restart the DAG run from where it was stopped, just do the same 
again but set the state to 'running'.


Cheers,
Luke Maycock
OLIVER WYMAN
[email protected]<mailto:[email protected]>
www.oliverwyman.com<http://www.oliverwyman.com/>



________________________________
From: Christian Trebing <[email protected]>
Sent: 13 December 2016 11:58
To: [email protected]
Subject: How to abort a DagRun?

Hi,

we sometimes have the situation that a DagRun is started, but it needs to
be aborted. The current way of handling that situation is to stop airflow,
reinitialize the database and restart airflow. Is there a better way how to
handle this in the airflow UI without erasing the history of DagRuns?

Regards,
 Christian

________________________________
This e-mail and any attachments may be confidential or legally privileged. If 
you received this message in error or are not the intended recipient, you 
should destroy the e-mail message and any attachments or copies, and you are 
prohibited from retaining, distributing, disclosing or using any information 
contained herein. Please inform us of the erroneous delivery by return e-mail. 
Thank you for your cooperation.

Reply via email to