Can i somehow create tasks in azure devops wheneve...
# prefect-community
n
Can i somehow create tasks in azure devops whenever a flow fails? I've setup slack notifitations. Possible i could intercept emails or slack notifs and create tasks based on these, but is there a smarter option?
azure 1
1
s
Hi @Nic, thanks for your question!
Can i somehow create tasks in azure devops whenever a flow fails?
If you’re talking about Azure DevOps tasks, provided that you have an Azure DevOps pipeline with a task (calling it
prefect flow trigger
) that triggers a Prefect flow, inside that
prefect flow trigger
task you could also wait for the flow run to completed. If the flow run ends with a status of failed, (conditionally) kick off the next Azure DevOps task in the pipeline that does whatever you’re trying to do. Does that help? If not, you may find what you’re looking for in the prefect-azure collection. Otherwise, feel free to post your question in the #prefect-azure support channel as well for more visibility 🙂
n
I will check the resources posted, as i mean a DevOps story/task for the board :)
s
I think it would just be a matter of modifying the above script to await the flow run status and conditionally create the work item in the Azure DevOps.