samsondav / rihanna

Rihanna is a high performance postgres-backed job queue for Elixir
MIT License
439 stars 47 forks source link

Running N instances of rihanna on different tables #79

Closed tpitale closed 5 years ago

tpitale commented 5 years ago

Is it possible to run multiple rihanna (supervisors) each pointing to a different configured table? Not sure how enqueue would work. This would let us have N "queues", effectively.

tpitale commented 5 years ago

It seems like a lot of things might break on Rihanna.Config.jobs_table_name() since Rihanna.Config is basically global/singleton.

samsondav commented 5 years ago

@tpitale Do you have a legitimate use case for multiple tables? If so, we can consider adding it.