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

Fix return wrong TTL when pumping job from the secondary storage #218

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

git-hulk
Copy link
Member

Currently, we put now() + TTL as the expired time when storing jobs in the database,
but didn't remove the now() after pumping jobs. This PR also removes
the unused function BatchGetJobs which is similar to GetReadyJobs.

Currently, we put now() + TTL as the expired time when storing jobs in database,
but didn't remove the now() after pumping jobs. This PR also remove
unused function `BatchGetJobs` which is similar with GetReadyJobs.
@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #218 (8a08e2b) into master (6122a4b) will decrease coverage by 0.13%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master     #218      +/-   ##
==========================================
- Coverage   56.05%   55.92%   -0.13%     
==========================================
  Files          38       38              
  Lines        2983     2961      -22     
==========================================
- Hits         1672     1656      -16     
+ Misses       1093     1090       -3     
+ Partials      218      215       -3     
Flag Coverage Δ
unittests 55.92% <83.33%> (-0.13%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
storage/persistence/spanner/spanner.go 77.23% <83.33%> (-0.70%) ⬇️

... and 1 file with indirect coverage changes

@git-hulk git-hulk added the bug label Sep 27, 2023
@git-hulk git-hulk merged commit dccad8c into master Sep 27, 2023
7 checks passed
@git-hulk git-hulk deleted the fix/incorrect-expire-time-in-v2 branch October 7, 2023 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant