timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.07k stars 157 forks source link

Support for fetch all jobs from queue? #355

Closed jianinz closed 1 year ago

jianinz commented 1 year ago

When working with pg-boss, I noticed that one could configure the batch size, but what if I would like to fetch all jobs, it does not seem to support that in the latest stable version, is that right?

timgit commented 1 year ago

You can use fetch(), but you will need to specify the number of jobs

jianinz commented 1 year ago

Thanks for getting back to me @timgit. As time of writing, I specify a quite a large number as batch size, that kinda serves the purpose of what I initially want. But it will be great if it has API like fetchAll() : )