Skip to content

Commit

Permalink
Merge pull request inspirehep#84 from DonHaul/restart-workflow-fix
Browse files Browse the repository at this point in the history
restart-workflows-fix
  • Loading branch information
DonHaul authored Aug 15, 2024
2 parents c63f1a3 + dc5a047 commit ed845d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backoffice/backoffice/workflows/airflow_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
AIRFLOW_BASE_URL = environ.get("AIRFLOW_BASE_URL")

AIRFLOW_HEADERS = {
"Content-Type": "application/json",
"Authorization": f"Basic {environ.get('AIRFLOW_TOKEN')}",
}

Expand Down Expand Up @@ -140,10 +139,7 @@ def delete_workflow_dag(dag_id, workflow_id):
dag_id,
url,
)
response = requests.delete(
url,
headers=AIRFLOW_HEADERS,
)
response = requests.delete(url, headers=AIRFLOW_HEADERS)
response.raise_for_status()
return JsonResponse({"message": "Successfully deleted DAG"})
except RequestException:
Expand Down

0 comments on commit ed845d4

Please sign in to comment.