Skip to content

Commit

Permalink
schedule should also watch delayed_queue_schedule (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler authored Mar 16, 2020
1 parent b18c08b commit 4608b6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ export class Scheduler extends EventEmitter {
private async cleanupTimestamp(timestamp: number) {
const key = this.connection.key("delayed:" + timestamp);
await this.connection.redis.watch(key);
await this.connection.redis.watch(
this.connection.key("delayed_queue_schedule")
);
const length = await this.connection.redis.llen(key);
if (length === 0) {
await this.connection.redis
Expand Down

0 comments on commit 4608b6f

Please sign in to comment.