kaxil commented on issue #56471:
URL: https://github.com/apache/airflow/issues/56471#issuecomment-3451432672

   an example could be dynamic Hostname:
   
   Example:
   
   ```
   class MyCustomOp(BaseOperator):
        template_fields = ("env_var", )
        def __init__(*args, **kwargs):
            self.env_vars = os.environ.copy()
   ```
   
   And the environ variables on Host had dynamically changing value since it 
was running on Pods.
   
   Example:
   
   First try
   ```
   HOSTNAME=awdapla-tyuda-1019-dag-processor-78867d95f9-wdqtx
   ```
   
   Second parse
   ```
   HOSTNAME=paswda-yeweifr-1019-dag-processor-3423923-qdqt3
   ```


-- 
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]

Reply via email to