Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
a28a154
Move BashOperator template field logic from __init__ to execute
Jul 25, 2026
acc41a4
Remove BashOperator from validate-operators-init exemption list
Jul 25, 2026
2046f37
Fix formatting: remove trailing whitespace on blank line
Jul 25, 2026
c657807
Merge branch 'main' into fix-bashoperator-template-field-init
Kunal8954 Jul 26, 2026
88177b4
Remove no-op ServerResponseError re-raise blocks in airflowctl operat…
Lee-W Jul 26, 2026
20fcbf2
Move template-field validation out of AnthropicAgentSessionOperator _…
bramhanandlingala Jul 26, 2026
6905d40
Fix DateTimeSensor crash when target_time renders to a datetime (#70320)
1fanwang Jul 26, 2026
c0b0c29
Fix incorrect asset queued-event endpoint paths in airflowctl (#70461)
henry3260 Jul 26, 2026
bf955d3
Move amazon dms operator template-field validation to execute() (#70450)
ahilashsasidharan Jul 26, 2026
0eae3cc
git push fork fix-bashoperator-template-field-init --forceFix templat…
bramhanandlingala Jul 26, 2026
3034319
Move Compute Engine validation out of constructors (#70454)
daesung9511 Jul 26, 2026
c428c48
Fix EcsRunTaskOperator deferred-logs region and template field init (…
fat-catTW Jul 26, 2026
2da05c8
Clarify contributing-docs regarding external_db_managers (#70466)
stephsi Jul 26, 2026
1001325
Add missing UI translations for Greek(el) (#70467)
xBis7 Jul 26, 2026
5c9b075
Add queue parameter to edge list-workers subcommand (#70436)
shubhamraj-git Jul 26, 2026
37b0211
edge3: Exit non-zero when worker admin CLI commands fail (#70112)
dkranchii Jul 26, 2026
729ff8a
Remove stale type-ignore TODO in HTTP hook run_with_advanced_retry (#…
ed-kyu Jul 26, 2026
634b932
Add SQLBulkLoadOperator to Common SQL Provider (#69362)
SameerMesiah97 Jul 26, 2026
297cdfe
Merge branch 'main' into fix-bashoperator-template-field-init
Kunal8954 Jul 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,6 @@ def __init__(
self.cwd = cwd
self.append_env = append_env
self.output_processor = output_processor
self._is_inline_cmd = None
if isinstance(bash_command, str):
self._is_inline_cmd = self._is_inline_command(bash_command=bash_command)

@cached_property
def subprocess_hook(self):
"""Returns hook for running the bash command."""
Expand Down Expand Up @@ -215,7 +211,11 @@ def execute(self, context: Context):
raise AirflowException(f"The cwd {self.cwd} must be a directory")
env = self.get_env(context)

if self._is_inline_cmd:
is_inline_cmd = isinstance(self.bash_command, str) and self._is_inline_command(
bash_command=self.bash_command
)

if is_inline_cmd:
result = self._run_inline_command(bash_path=bash_path, env=env)
else:
result = self._run_rendered_script_file(bash_path=bash_path, env=env)
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/prek/validate_operators_init_exemptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ providers/microsoft/azure/src/airflow/providers/microsoft/azure/transfers/oracle
providers/microsoft/psrp/src/airflow/providers/microsoft/psrp/operators/psrp.py::PsrpOperator
providers/oracle/src/airflow/providers/oracle/transfers/oracle_to_oracle.py::OracleToOracleOperator
providers/standard/src/airflow/providers/standard/operators/bash.py::BashOperator
providers/papermill/src/airflow/providers/papermill/operators/papermill.py::PapermillOperator
providers/standard/src/airflow/providers/standard/operators/bash.py::BashOperator
providers/standard/src/airflow/providers/standard/operators/trigger_dagrun.py::TriggerDagRunOperator