-
Notifications
You must be signed in to change notification settings - Fork 446
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(job-scheduler): consider removing current job from wait, paused or prioritized #3066
Conversation
e26d0fe
to
196e055
Compare
196e055
to
b897552
Compare
b897552
to
5998c7a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small comment regarding the paused key.
@@ -4,6 +4,10 @@ | |||
Input: | |||
KEYS[1] 'repeat' key | |||
KEYS[2] 'delayed' key | |||
KEYS[3] 'wait' key | |||
KEYS[4] 'paused' key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not have pause key anymore, so why is this key needed?
rcall("ZREM", prioritizedKey, currentJobId) | ||
else | ||
if isQueuePaused(KEYS[5]) then | ||
if rcall("LREM", KEYS[4], 1, currentJobId) > 0 then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be needed as there is no pause key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am seeing that we actually still have the pause key even if it is not useful anymore. I guess we need to set it for deprecation then.
It's being removed as part of next breaking change #2707 |
## [5.41.5](v5.41.4...v5.41.5) (2025-02-21) ### Bug Fixes * **job-scheduler:** consider removing current job from wait, paused or prioritized ([#3066](#3066)) ([97cd2b1](97cd2b1))
Why
How
Additional Notes (Optional)
Any extra info here.