Comments (6)
But I don't really know how people use this polling interval in practice. You've also got a delay time, which is functionally different but still related. How is a single polling interval selected for many different job types? Seems like it would have to be chosen independently of the jobs performed.
from pg-boss.
There seems to be a workaround for this: create a different instance of pg-boss for each type of job.
from pg-boss.
newJobCheckInterval
is an internal configuration setting that I'm being polite to expose for the sake of giving consumers more knobs and buttons to adjust. You won't likely need to change it.
from pg-boss.
you shouldn't need to create multiple pg-boss instances for that.
At this point, I think you'd be better off just throwing your application together using a single instance with multiple publish and subscribes of all of your job types.
from pg-boss.
Closing until I've made a better study of the code. Thanks for your help!
from pg-boss.
newJobCheckInterval 's default value is 1 second. But 1 day is also ok.
from pg-boss.
Related Issues (20)
- how can I update job date?
- Typescript typing issue with work and batchSize
- Multiple start call HOT 1
- Maintenance Interval Issues / config options ignored HOT 1
- feature request: worker's job filter HOT 7
- bug: swallowed error when connection is closed HOT 1
- The library does not support PostgreSQL 11, just 13+ HOT 1
- Bug: debounce mechanism schedule multiple jobs HOT 1
- High Database CPU when processing backlog HOT 9
- feature-request: It should be possible to predict a job key or id. HOT 4
- Use pg-boss with postgres.js HOT 5
- Stopping pg-boss gracefully does not wait until stop timeouts HOT 9
- 'stopping' state missing in TypeScript Types HOT 1
- Easier observability for expired jobs HOT 1
- Is pg-boss actively maintained? HOT 2
- Scheduled jobs cannot run more than once per minute HOT 7
- Limiting Concurrent Active Jobs Across Multiple Queues HOT 2
- Scheduling many individual jobs for the same queue HOT 3
- Document onComplete option HOT 1
- Job heartbeat support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg-boss.