-
Notifications
You must be signed in to change notification settings - Fork 437
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(worker): process job when closing and it was moved to active #3042
Conversation
@@ -819,7 +826,7 @@ will never work with more accuracy than 1ms. */ | |||
fetchNextCallback = () => true, | |||
jobsInProgress: Set<{ job: Job; ts: number }>, | |||
): Promise<void | Job<DataType, ResultType, NameType>> { | |||
if (!job || this.closing || this.paused) { | |||
if (!job) { |
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.
not needed, as the signature of this method already guarantees that the job cannot be undefined or null
@@ -88,7 +88,7 @@ else | |||
end | |||
end | |||
|
|||
local deduplicationJobId = deduplicateJob(args[1], opts['de'], | |||
local deduplicationJobId = deduplicateJob(opts['de'], |
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.
unrelated fix?
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.
Unused variable, not a fix, just re formatting
]] | ||
|
||
local function deduplicateJob(prefixKey, deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents) | ||
local function deduplicateJob(deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents) |
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 seems to be an unrelated fix.
Closed in favor of #3059 |
Why
How
Additional Notes (Optional)
Any extra info here.