Skip to content

Commit

Permalink
chore: 8 attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Dec 5, 2024
1 parent 9a92054 commit 9bdde83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classes/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ export class Worker<
this.blockUntil = await this.waiting;

if (this.blockUntil <= 0 || this.blockUntil - Date.now() < 1) {
return this.moveToActive(client, token, this.opts.name);
return await this.moveToActive(client, token, this.opts.name);
}
} catch (err) {
// Swallow error if locally paused or closing since we did force a disconnection
Expand Down
2 changes: 1 addition & 1 deletion tests/test_job_scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ONE_DAY = 24 * ONE_HOUR;

const NoopProc = async (job: Job) => {};

describe.only('Job Scheduler', function () {
describe('Job Scheduler', function () {
const redisHost = process.env.REDIS_HOST || 'localhost';
const prefix = process.env.BULLMQ_TEST_PREFIX || 'bull';
this.timeout(10000);
Expand Down

0 comments on commit 9bdde83

Please sign in to comment.