sorentwo / oban

💎 Robust job processing in Elixir, backed by modern PostgreSQL and SQLite3
https://getoban.pro
Apache License 2.0
3.18k stars 297 forks source link

Include app name in `:pg` group namespace #1065

Closed warmwaffles closed 3 months ago

warmwaffles commented 3 months ago

We are running 4 separate elixir applications in the same cluster. Each application talks to each other using :pg. But each application has its own Oban instance running. We were running into issues where other nodes were showing up in the dashboard.

I tried setting just name: MyApp.Oban and on the dashboard router helper oban_name: MyApp.Oban. This did not work. Locally I made the following changes in my deps/ directory, recompiled and this seems to do the trick.

If you have a better solution, feel free to close this. I just wanted to bring this up as potential solution.

warmwaffles commented 3 months ago

I'm unsure if there are tests for this in the test directory.

sorentwo commented 3 months ago

@warmwaffles Done! See the linked commit.