navvy icon indicating copy to clipboard operation
navvy copied to clipboard

Namespacing jobs

Open eet-nu opened this issue 14 years ago • 1 comments

I'm currently developing two seperate apps that run on the same MySQL server. I just introduced navvy in one project, but I'm pretty sure I will be using it in the second project soon.

Because they share the same database, both navvy workers will use the same jobs table. I expect this to cause problems.

In order to prevent these problems I was wondering if there is a way to create jobs in a namespace and let the workers query for just these jobs. If not, consider this a feature request :D!

eet-nu avatar Jul 20 '10 18:07 eet-nu

Navvy doesn't have built-in support for this right now. It always expects a single "jobs" table. It should be possible to build something like this in, though. Navvy could allow you to set the table name in the config or something.

Another option would be to start supporting multiple queues in one table and have a navvy for each. I'll look into this. :)

If you have a great idea, please let me know. :)

jeffkreeftmeijer avatar Jul 21 '10 07:07 jeffkreeftmeijer