Skip to content

feat: add a function to determine whether a retry is necessary when error occured#1492

Merged
openshift-merge-robot merged 1 commit intocontainers:mainfrom
fengxsong:retry_options
Jun 12, 2023
Merged

feat: add a function to determine whether a retry is necessary when error occured#1492
openshift-merge-robot merged 1 commit intocontainers:mainfrom
fengxsong:retry_options

Conversation

@fengxsong
Copy link
Contributor

@fengxsong fengxsong commented Jun 8, 2023

Sometimes we want to provide our own functions to detect errors or simply wrap the isRetryable function, so I add a detect function option in struct Options to make it more universal.

@rhatdan rhatdan changed the title feat: add a function to determine weather a retry is necessary when error occured feat: add a function to determine whether a retry is necessary when error occured Jun 8, 2023
@rhatdan
Copy link
Member

rhatdan commented Jun 8, 2023

LGTM
@vrothberg @mtrmac PTAL

@rhatdan
Copy link
Member

rhatdan commented Jun 8, 2023

Thanks @fengxsong

@rhatdan
Copy link
Member

rhatdan commented Jun 10, 2023

@fengxsong Please squash your commits, and repush.

…ror occured and make function 'IsErrorRetryable' public

Signed-off-by: fengxsong <fengxsong@outlook.com>
@fengxsong
Copy link
Contributor Author

@fengxsong Please squash your commits, and repush.

done

@rhatdan
Copy link
Member

rhatdan commented Jun 11, 2023

/approve
@mtrmac @vrothberg @mheon @giuseppe @Luap99 @baude PTAL

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
Thanks!

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fengxsong, giuseppe, rhatdan, vrothberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [giuseppe,rhatdan,vrothberg]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 2bc6436 into containers:main Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants