leeadh opened a new issue #19405:
URL: https://github.com/apache/airflow/issues/19405
### Description
Im trying to export custom values
export_custom_task = BashOperator(
task_id="bash_task",
bash_command="export a='b'",
env={
'CUSTOM_ENV': 'CUSTOM_VALUE',
**os.environ
},
dag=dag
)
get_env_task = BashOperator(
task_id="sample_task",
bash_command="echo $CUSTOM_ENV",
dag=dag
)
but when i try to echo the variable, nothing returns. Perhaps it will be
good to build in the docs how to do this as I need exported values for a task.
### Use case/motivation
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]