-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Making job check interval a function of job type #5
Comments
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. |
There seems to be a workaround for this: create a different instance of pg-boss for each type of job. |
|
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. |
Closing until I've made a better study of the code. Thanks for your help! |
newJobCheckInterval 's default value is 1 second. But 1 day is also ok. |
newJobCheckInterval
is configured for all of pg-boss, but different job types can have different interval requirements. Consider the following job types:It would be nice to not only configure this as a function of job type, but to be able to dynamically change it as a function of job type, in order to support throttling (see #4).
The text was updated successfully, but these errors were encountered: