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

perf: refactor updating the expired status with tx, and remove task t… #50

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

codebender37
Copy link
Collaborator

@codebender37 codebender37 commented Oct 29, 2024

  • removed transaction in updating expired status since need to be atomic
  • refactored with raw query
    • delete task that are expired, and no task result
    • update task's status if that are expired and has task result

@codebender37 codebender37 force-pushed the perf/remove-expired-task-with-no-task-result branch 2 times, most recently from 6742497 to 22e63e6 Compare November 1, 2024 04:02
@codebender37 codebender37 marked this pull request as ready for review November 1, 2024 05:34
pkg/orm/task.go Outdated Show resolved Hide resolved
@codebender37 codebender37 force-pushed the perf/remove-expired-task-with-no-task-result branch from e240535 to 5174a5e Compare November 7, 2024 09:27
Copy link
Collaborator

@karootplx karootplx left a comment

Choose a reason for hiding this comment

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

lgtm

@codebender37 codebender37 merged commit 011a82f into dev Nov 7, 2024
1 check passed
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