Hi everyone,

I've been looking into the interaction between AIP-85's explicit template
handling and the execution behaviour of BashOperator, and wanted to get
some feedback on something I noticed.

In the YAML importer, template_ext is set to an empty tuple (()) to prevent
the usual file-based template lookup.

However, BashOperator's _is_inline_command() still checks the class-level
template_ext to decide whether a command should be executed directly or
written to a temporary script.

This means that even when template file handling is disabled at the
instance level, the command execution behaviour still follows the
class-level file extension check.

I wanted to get some clarity on a few things:

   -

   Is this separation between template handling and command execution
   intentional?
   -

   Should the decision to execute a command as a temporary script also
   respect the explicit template intent?
   -

   Would changing this behaviour fall within the scope of AIP-80, or should
   it be considered separately?

I've been exploring this through source inspection and local experiments,
and would be happy to share the findings if useful.

I'd appreciate any thoughts or pointers on the intended behaviour before
looking into possible changes.

Thanks!

Reply via email to