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

Invalid job status null, expected QUEUED. #189

Open
aakashjw opened this issue May 10, 2021 · 1 comment
Open

Invalid job status null, expected QUEUED. #189

aakashjw opened this issue May 10, 2021 · 1 comment

Comments

@aakashjw
Copy link

Getting the issue:
Invalid job status null, expected QUEUED. Please open an issue at https://github.com/SGrondin/bottleneck/issues

Trace:

at Job._assertStatus(.../bottleneck/lib/Job.js:77:13)
at Job.doRun(.../bottleneck/lib/Job.js:105:12)
at Bottleneck._run (.../bottleneck/lib/Bottleneck.js:193:11)
at (.../bottleneck/lib/Bottleneck.js:256:18)

Current settings:
highWater: 0,
strategy: BLOCK

I want to block any requests that are beyond allowed requests without maintaining a queue, so I am setting highWater = 0.

Please let me know what could be an issue here?

@colin-oos
Copy link

I am having the same issue. I don't get it all the time but I get this error sometimes while using Bottleneck.Group and clustering (with ioredis). Options are set as:

{
  strategy: Bottleneck.strategy.LEAK,
  highWater: 100,
  minTime: 333,
  maxConcurrent: 1,
  timeout: 15000,
  connection // a Bottleneck.IORedisConnection
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants