Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attempt count to HSM tasks #6982

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pdoerner
Copy link
Contributor

What changed?

Added logic to track attempt count on HSM tasks. Specifically for nexusoperations.InvocationTask and nexusoperations.CancelationTask

Why?

To make this information available to the task executors.

How did you test it?

Updated tests

@pdoerner pdoerner marked this pull request as ready for review December 12, 2024 21:46
@pdoerner pdoerner requested a review from a team as a code owner December 12, 2024 21:46
@pdoerner pdoerner requested a review from bergundy December 13, 2024 00:00
Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

I'm a bit on the fence with this change.
I prefer to expose the attempt count on the events that are relevant to you (I think you might want callbacks to BTW - trying to remember what we decided) instead of adding to the hsm.Task interface and forcing everyone to care about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants