Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass a String to ActiveJob (rather than a SafeBuffer) #624

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michaelbaudino
Copy link

@michaelbaudino michaelbaudino commented Apr 26, 2024

This provides compatibility with Sidekiq as an ActiveJob adapter (because Sidekiq only allows native JSON types to be passed as job arguments).

All credit goes to @jdelStrother who suggested this solution.

Fixes #522, fixes #535

This provides compatibility with Sidekiq as an ActiveJob adapter (because [Sidekiq only allows native JSON types][1] to be passed as job arguments).

All credit goes to [@jdelStrother] who [suggested this solution][2].

Fixes [hotwired#522] and [hotwired#535]

[1]: https://github.com/sidekiq/sidekiq/wiki/Best-Practices#1-make-your-job-parameters-small-and-simple
[2]: hotwired#535 (comment)
[@jdelStrother]: https://github.com/jdelStrother
[hotwired#522]: hotwired#522
[hotwired#535]: hotwired#535
@michaelbaudino
Copy link
Author

By the way, @jdelStrother, I'd be happy to close this PR if you want to create another one to be the author of the commit.

@jdelStrother
Copy link

No worries, happy to leave you as the author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment