Skip to content
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: Renamed the JobSchedulerService queue's name #9000

Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion packages/medusa/src/services/__tests__/job-scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("JobSchedulerService", () => {

it("creates bull queue", () => {
expect(Queue).toHaveBeenCalledTimes(1)
expect(Queue).toHaveBeenCalledWith("scheduled-jobs:queue", {
expect(Queue).toHaveBeenCalledWith("scheduled-jobs-queue", {
connection: expect.any(Object),
prefix: "JobSchedulerService",
})
Expand Down
4 changes: 2 additions & 2 deletions packages/medusa/src/services/job-scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ export default class JobSchedulerService {
...(config.projectConfig.redis_options ?? {}),
})

this.queue_ = new Queue(`scheduled-jobs:queue`, {
this.queue_ = new Queue(`scheduled-jobs-queue`, {
connection,
prefix,
})

// Register scheduled job worker
this.worker_ = new Worker(
"scheduled-jobs:queue",
"scheduled-jobs-queue",
this.scheduledJobsWorker,
{
connection,
Expand Down
Loading