Skip to content

Commit

Permalink
feat(update): minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed May 30, 2024
1 parent 6c10318 commit f53ab1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PrismaQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ export class PrismaQueue<
return this.#prisma[queueJobKey];
}

public start(): void {
public async start(): Promise<void> {
debug(`starting queue named="${this.name}"...`);
if (!this.stopped) {
debug(`queue named="${this.name}" is already running, skipping...`);
return;
}
this.stopped = false;
this.poll();
return this.poll();
}

public async stop(): Promise<void> {
Expand Down

0 comments on commit f53ab1b

Please sign in to comment.