Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy_dag endpoint does not work with unpause POST body agruements #76

Open
emveee opened this issue Nov 3, 2020 · 0 comments
Open

Comments

@emveee
Copy link

emveee commented Nov 3, 2020

Using v1.0.9-branch with Airflow 1.10.12 via Helm.

Unpause does not work via:

curl -X POST -H 'Content-Type: multipart/form-data' -F 'dag_file=@dag.py' -F 'unpause=on' -F 'force=on' http://127.0.0.1:8080/admin/rest_api/api?api=deploy_dag

{"arguments":{"api":"deploy_dag"},"call_time":"Tue, 03 Nov 2020 18:17:07 GMT","http_response_code":200,"output":"DAG File [<module 'module.name' from '/opt/airflow/dags/dag.py'>] has been uploaded","post_arguments":{"force":"on","unpause":"on"},"response_time":"Tue, 03 Nov 2020 19:19:15 GMT","status":"OK","warning":"Failed to set the state (pause, unpause) of the DAG: module 'module.name' has no attribute 'dag'"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant