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

Cannot access jobs list due to int values representation error #755

Closed
coderjib opened this issue Mar 10, 2021 · 2 comments
Closed

Cannot access jobs list due to int values representation error #755

coderjib opened this issue Mar 10, 2021 · 2 comments
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@coderjib
Copy link
Contributor

Describe the bug
When accessing the job list in the admin panel, I get the following error warning, repeatedly (with different numbers): Int cannot represent non 32-bit signed integer value: 2336469457. The error message sometimes appears also in the admin home and throughout other views, but the error seems to be originated from the jobs panel that in fact is always blank, empty due to this error.
The error is similar to what reported in issue #696 but i believe in a different context.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the admin panel
  2. Access the jobs queue
  3. See the error and not the jobs list

Expected behavior
Jobs list should appear correctly

Environment (please complete the following information):

  • @vendure/core version: 0.18.5
  • Nodejs version: 12.21.0
  • Database (mysql/postgres etc): postgres

Additional context
The error was already there when I had deployed the same site with Vendure v. 0.18.3

@coderjib coderjib added the type: bug 🐛 Something isn't working label Mar 10, 2021
@michaelbromley
Copy link
Member

Ah ok, this must be coming from the Job.duration field (which is the only Int field on that type). So there must be a job in the list which has a duration of 2336469457ms (which is like 27 days, ouch!). I guess that job is broken and will never complete. For now you can manually remove any jobs with massive duration from the queue in the DB.

@coderjib
Copy link
Contributor Author

Ok clear, will do as you suggest. Thank you!!

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

No branches or pull requests

2 participants