Skip to content

Add a retry with wait interval for SSH operator #14489

Description

@Gaurang033

Description
currently SSH operator fails if authentication fails without retying. We can add two more parameters as mentioned below which will retry in case of Authentication failure after waiting for configured time.

  • max_retry - maximum time SSH operator should retry in case of exception
  • wait - how many seconds it should wait before next retry

Use case / motivation
We are using SSH operator heavily in our production jobs, And what I have noticed is sometimes SSH operator fails to authenticate, however open re-running jobs it run successfully. And this happens ofthen. We have ended up writing our own custom operator for this. However, if we can implement this, this could help others as well.

Implement the suggested feature for ssh operator.

Are you willing to submit a PR?
I will submit the PR if feature gets approval.

Related Issues
N/A

No

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions