AlejandroMorgante commented on PR #71244:
URL: https://github.com/apache/airflow/pull/71244#issuecomment-5432458738

   Combining `exec`, `logs`, and `watch` would give one operator several 
different responsibilities and completion contracts.
   
   `pods/exec` already allows this operator to start any command available 
inside the container, stream its stdout and stderr, and wait for its exit code. 
In contrast, `pods/log` only consumes a log stream, while `watch` observes 
resource state and requires a condition to determine when the task should 
finish.
   
   This also differs from `KubernetesPodOperator`: KPO creates a Pod and 
configures the workload as the container's main process. It then monitors the 
Pod lifecycle.`KubernetesPodExecOperator` starts a secondary process through 
`pods/exec`, waits only for that process, and leaves the existing Pod running.


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