Skip to content

improvement: add oban option to AshOban.Signals - #228

Merged
zachdaniel merged 1 commit into
ash-project:mainfrom
jeffhuen:signals-oban-option
Oct 24, 2026
Merged

zachdaniel merged 1 commit into
ash-project:mainfrom
jeffhuen:signals-oban-option

Conversation

@jeffhuen

@jeffhuen jeffhuen commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

AshOban.Signals always inserts jobs into the default Oban instance. An app that runs a second instance, for example on another repo, cannot send a listener's jobs to it. If the emitting resource uses that other repo, AshOban also inserts the jobs outside the action's transaction.

This PR adds an oban delivery option. Its default is Oban:

on :order_placed, :send_receipt, delivery: {AshOban.Signals, oban: MyApp.Oban}

AshOban.config/3 now requires only the queues of listeners that use the instance it configures.

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

@jeffhuen
jeffhuen force-pushed the signals-oban-option branch from d7314ea to 62861c0 Compare October 23, 2026 18:16
@zachdaniel
zachdaniel merged commit df7ecd4 into ash-project:main Oct 24, 2026
@zachdaniel

Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

@jeffhuen
jeffhuen deleted the signals-oban-option branch October 24, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants