Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/taskSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ taskSchema.statics.startPolling = function startPolling(options) {
const interval = options?.interval ?? 1000;
const workerName = options?.workerName;
const getCurrentTime = options?.getCurrentTime;
const parallel = options?.parallel;
const pollOptions = {
...(workerName ? { workerName } : {}),
...(getCurrentTime ? { getCurrentTime } : {})
...(getCurrentTime ? { getCurrentTime } : {}),
...(parallel != null ? { parallel } : {})
Comment thread
vkarpov15 marked this conversation as resolved.
};
Comment thread
vkarpov15 marked this conversation as resolved.
let cancelled = false;
let timeout = null;
Expand Down
Loading