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

Make matching service executeWithRetry function stateless #2305

Merged
merged 1 commit into from
Dec 16, 2021
Merged

Make matching service executeWithRetry function stateless #2305

merged 1 commit into from
Dec 16, 2021

Conversation

wxing1292
Copy link
Contributor

What changed?

  • Make matching service executeWithRetry function stateless
  • Polish new db task logic for later integration

Why?
Cleanup logic for later integration

How did you test it?
N/A

Potential risks
N/A

Is hotfix candidate?
No

@wxing1292 wxing1292 requested review from dnr, alexshtin, yiminc and a team December 15, 2021 21:56
Comment on lines +45 to +46
dbTaskInitialRangeID = 1
dbTaskStickyTaskQueueTTL = 24 * time.Hour
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these 2 definitions are copy pasted from existing impl https://github.com/temporalio/temporal/blob/20bf977/service/matching/db.go#L43

so later db.go, taskReader.go, taskWriter.go, ackManager.go can simply be deleted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

once integration with new db task * are done

@wxing1292 wxing1292 enabled auto-merge (squash) December 15, 2021 23:29
@wxing1292 wxing1292 merged commit a619fd4 into temporalio:master Dec 16, 2021
@wxing1292 wxing1292 deleted the matching-0 branch December 16, 2021 01:15
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