-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
WorkflowsCreateExecutionOperator execution argument only receive bytes #27165
Comments
Hopefully someone will pick it - marked is as good-first-issue - also if you wnt @akakakakakaa you can attempt to make a PR and fix it - might be nice first contribution. Otherwise i will have to wait for someone who will pick it. |
I'll take this one if it's still available. |
I've opened a PR for this. Tests for |
Also want to mention that |
commented there. You need to add test. And making project_id templated for those might be a good idea for another PR |
Apache Airflow Provider(s)
google
Versions of Apache Airflow Providers
apache-airflow-providers-google==7.0.0
Apache Airflow version
2.3.2
Operating System
Ubuntu 20.04.5 LTS (Focal Fossa)
Deployment
Docker-Compose
Deployment details
No response
What happened
WorkflowsCreateExecutionOperator triggers google cloud workflows and execution param receives argument as {"argument": {"key": "val", "key", "val"...}
But, When I passed argument as dict using render_template_as_native_obj=True, protobuf error occured TypeError: {'projectId': 'project-id', 'location': 'us-east1'} has type dict, but expected one of: bytes, unicode.
When I passed argument as bytes {"argument": b'{\n "projectId": "project-id",\n "location": "us-east1"\n}' It working.
What you think should happen instead
execution argument should be Dict instead of bytes.
How to reproduce
not working
working
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: