jedcunningham commented on issue #27358: URL: https://github.com/apache/airflow/issues/27358#issuecomment-1570926986
Hi @devdattakulkarni, Generally you should ask this type of stuff on [our slack](https://apache-airflow-slack.herokuapp.com/) or in a [discussion](https://github.com/apache/airflow/discussions) instead of old issues, even if they are sorta related like this one. Couple things: - Don't use executor config to run a separate python script like you are trying to. KE still needs to run the Airflow worker. Do the import and run whatever you are trying to do in your `my_task` function, or use BashOperator. - If you stick with taskflow, you can access conf with the context, as described in the [taskflow tutorial](https://airflow.apache.org/docs/apache-airflow/stable/tutorial/taskflow.html#accessing-context-variables-in-decorated-tasks). The templating you were attempting doesn't work everywhere, only in attributes listed in `templated_fields` in your operator. See the [jinjia templating section of the operator docs](https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/operators.html#concepts-jinja-templating) for details. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
