-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure Sidekiq::Worker works with AsyncHandler helper.
When serializing payload for background job system with JSON, information about symbols as keys is lost. ActiveJob persists the information about symbols in payload. This information is used to convert those keys back to symbols when the payload is passed back to worker. When using plain Sidekiq::Worker without ActiveJob wrapper, this mechanism is no longer in place. The polyfill for such behaviour is rather simple in case of SerializedRecord thus we provide it for convenience in RailsEventStore::AsyncHandler. When you don't use RailsEventStore::AsyncHandler, the responsibility of adjusting received payload for event_store.deserialize() is on you. Closes #507.
- Loading branch information
1 parent
c6f0114
commit 7d249f5
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
rails_event_store/lib/rails_event_store/async_handler_helpers.rb
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