Skip to content

Conversation

lina-temporal
Copy link
Contributor

What changed?

  • Added physical pure task processing logic to the timer queue executors.

Why?

How did you test it?

  • Pending; PR is in draft

Potential risks

Documentation

Is hotfix candidate?

@lina-temporal lina-temporal requested review from alexshtin and yycptt May 2, 2025 02:33
// If this line of code is reached, the task's Validate() function returned no error, which indicates
// that it is still expected to run. Return ErrTaskRetry to wait the machine to transition on the active
// cluster.
return consts.ErrTaskRetry
Copy link
Member

Choose a reason for hiding this comment

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

I am slightly concerned that the verification may never completes if new valid tasks are keep getting generated.

We probably want to add VT to the physical pure tasks and only execute/verify those tasks generated <= the VT recorded in the physical task. Can you help create a follow up task on this? Not high priority and we can address it later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created OSS-4273 for follow-up.

Comment on lines 139 to 143
if err != nil && errors.Is(err, consts.ErrTaskRetry) {
return &struct{}{}, nil
}

return nil, nil
Copy link
Member

Choose a reason for hiding this comment

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

we should still return err if it's not nil and also not ErrTaskRetry?

@lina-temporal lina-temporal marked this pull request as ready for review May 7, 2025 20:40
@lina-temporal lina-temporal requested a review from a team as a code owner May 7, 2025 20:40
@lina-temporal lina-temporal merged commit df45113 into chasm_tree_pure_tasks May 7, 2025
10 of 12 checks passed
@lina-temporal lina-temporal deleted the chasm_timer_pure_tasks branch May 7, 2025 20:41
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