'ServiceNow integration with Airflow

Can we integrate ServiceNow with Airflow ? I mean if there is any DAG failure, can we rerun the failed DAG/tasks by submitting a ServiceNow request ? Also can we submit an adhoc job to run using ServiceNow. Thanks in advance.



Solution 1:[1]

Yes, simply use the on_failure_callback parameter of the dag to call a function that makes a POST request using service now's SET API (particularly the u_incident table)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 SushRam