Skip to content

Conversation

@alexshtin
Copy link
Contributor

What changed?
getBackoffInteval besides interval itself, now returns current retry status from commonpb.RetryStatus enum.

Why?
RetryStatus is stored in history and can be used for debugging. It also allows to generate more accurate timeout errors.

How did you test it?
All tests.

Potential risks
No risks.

@alexshtin alexshtin requested review from mfateev and samarabbas June 5, 2020 00:14
Comment on lines 670 to 671
// TODO(maxim): is decisionTaskCompletedID the correct id?
// TODO(maxim): should we introduce new TimeoutTypes (Workflow, Run) for workflows?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I remove this comment?

Copy link
Member

Choose a reason for hiding this comment

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

yes

break Loop
}

if timerSequenceID.timerType != timerTypeScheduleToStart {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed this check because RetryActivity below will call IsRetryable and it will return NonRetryableFailure for ScheduleToStart.

Comment on lines +237 to +238
if retryStatus == commonpb.RetryStatus_Timeout {
timeoutFailure.GetTimeoutFailureInfo().TimeoutType = commonpb.TimeoutType_ScheduleToClose
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is how I change timeout type for timed out retries.

Comment on lines 670 to 671
// TODO(maxim): is decisionTaskCompletedID the correct id?
// TODO(maxim): should we introduce new TimeoutTypes (Workflow, Run) for workflows?
Copy link
Member

Choose a reason for hiding this comment

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

yes

@alexshtin alexshtin merged commit 4e0c4e0 into temporalio:master Jun 5, 2020
@alexshtin alexshtin deleted the feature/no-retry-reason branch June 5, 2020 01:02
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