I have a python operator.
PythonOperator(
task_id="getData",
python_callable=getData,
op_kwargs={
"params": {
"days": 1,
"limit": 10
}
},
provide_context=True,
)
I have set the provide_context to True as i need data to be sent to other task. I have the function where i want to pass just the params not kwargs.
def getData(params):
return params
I am getting an error upon running as:
TypeError: getData() got an unexpected keyword argument 'conf'
When i pass **kwargs and extract the params from it, it works fine but i do not want to pass kwargs just the params, what can be done for that?