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

[Bug]: upsertJobScheduler not upserting jobs at times #3085

Open
1 task done
austinwoon opened this issue Feb 18, 2025 · 2 comments
Open
1 task done

[Bug]: upsertJobScheduler not upserting jobs at times #3085

austinwoon opened this issue Feb 18, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@austinwoon
Copy link

Version

5.34.10

Platform

NodeJS

What happened?

upsertJobScheduler does not upsert jobs at times. At each redeploy, sometimes the job scheduler does not insert new jobs and no jobs get scheduled as a result. This happens undetermisitically for us

How to reproduce.

All we're doing is calling this at our index.ts fastify app file

    await this.queue.upsertJobScheduler(
      pollingWorkerName,
      {
        every: this.options.pollingFrequencyInMs ?? 2000,
      },
      {
        opts: {
          removeOnComplete: {
            count: 10000,
          },
        },
      }
    )

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@austinwoon austinwoon added the bug Something isn't working label Feb 18, 2025
@manast
Copy link
Contributor

manast commented Feb 19, 2025

There are several fixes in newer versions related to the job scheduler, I think that if you upgrade to the latest version you will not be able to reproduce this issue anymore, let me know how it goes.

@austinwoon
Copy link
Author

There are several fixes in newer versions related to the job scheduler, I think that if you upgrade to the latest version you will not be able to reproduce this issue anymore, let me know how it goes.

We just bumped the version to latest and still encountered same issue

Could it be because we have 4 instances trying to upsertJobScheduler at once?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants