-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ActiveJobScheduler accepts ActiveJob::ConfiguredJob instances
It allows for enriched subscription configuration, for example: event_store.subscribe(NotifyJob.set(wait: 5.minutes), to: [StatusChanged]) event_store.subscribe(NotifyJob.set(priority: 100), to: [SomeCriticalEvent]) event_store.subscribe(NotifyJob.set(queue: 'critical'), to: [SomeCriticalEvent]) So that we can reuse the same worker to configure event subscriptions which get scheduled differently for different event types.
- Loading branch information
Showing
2 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters