Skip to content

Add on_kill to SSHOperator #40343

@potiuk

Description

@potiuk

Body

The SSHOperator does not have on_kill method which could deliberately close the ssh client. This means that the klient is close by TERM or even KILL signal when the task is closed and it might leave the connection to SSH still open for quite some time when the server might not realise that the client is closed.

Closing the client gently should improve the speed with which the SSH server will close such stale connections in most cases.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions