timo-astronomer opened a new pull request, #73352:
URL: https://github.com/apache/airflow/pull/73352
<!-- SPDX-License-Identifier: Apache-2.0
https://www.apache.org/licenses/LICENSE-2.0 -->
Fix SSHRemoteJobOperator for windows.
Current code fails, since paths are enclosed in single quotes and PowerShell
requires double quotes.
In addition, command fails to start, because stdout and stderr are
redirected to the same file.
Both issues are fixed in this commit.
In addition, the payload is decreased by using variables for base path
instead of writing the same, long path multiple times.
Command is written to `job.ps1` file for execution to avoid double encoding.
Finally, command is executed as `Win32_Process` to prevent in from dying
when the SSH session terminates.
---
Everything is tested with this environment
```
OS Name: Microsoft Windows Server 2022 Datacenter
OS Version: 10.0.20348 N/A Build 20348
PSVersion 5.1.20348.5622
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.20348.5622
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
```
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (Claude code with Sonnet 4.6)
--
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]