timgit / pg-boss

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

Publishing when boss isn't ready #98

Closed thetimbanks closed 5 years ago

thetimbanks commented 5 years ago

I am in the process of evaluating this package and had a question regarding the publishing of new jobs. We plan to have pg-boss running on a set of worker servers that are separate from our application servers. It looks like the boss service needs to be running in order to publish a job though (boss won't be running on the application server where we will be publishing the jobs). Is there a way to publish jobs without the boss service running? I assume this would be a common setup and am curious how others have solved this.

Thanks.

thetimbanks commented 5 years ago

Actually, I think I got it figured out. We can just run the boss service without monitoring any queues on the app servers and have the worker version monitor queues.