oban-bg / oban

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

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

Closed warmwaffles closed 7 months ago

warmwaffles commented 7 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 7 months ago

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

sorentwo commented 7 months ago

@warmwaffles Done! See the linked commit.