AWS Glue Job Operator Not Able to Read Jinja Format #45036
Labels
area:providers
good first issue
kind:feature
Feature Requests
provider:amazon-aws
AWS/Amazon - related issues
Apache Airflow Provider(s)
amazon
Versions of Apache Airflow Providers
2.10.1
Apache Airflow version
9.1.0
Operating System
N/A
Deployment
Amazon (AWS) MWAA
Deployment details
I tried to configure the Number Of Workers and worker type within the run_job_kwargs parameter with jinja format like the following
run_job_kwargs={"NumberOfWorkers": '{{ ti.xcom_pull(task_ids="dummy",key="dummy") }}', "WorkerType":"dummy_type"}
What happened
the value with the jinja format was not recognized during run time and it shows the error that the Number Of Workers should have input type int rather than a string '{{ ti.xcom_pull(task_ids="dummy",key="dummy") }}'
What you think should happen instead
'{{ ti.xcom_pull(task_ids="dummy",key="dummy") }}' should pick up the real value during run time
How to reproduce
this could be reproduced by creating a dummy function to push some value to the xcom first then using a glue job operator with specifying
run_job_kwargs={"NumberOfWorkers": '{{ ti.xcom_pull(task_ids="dummy",key="dummy") }}', "WorkerType":"dummy_type"}
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: