-
Notifications
You must be signed in to change notification settings - Fork 62
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
Support AJ 7.1 perform_all_later api #110
Support AJ 7.1 perform_all_later api #110
Conversation
0824f68
to
f7af45c
Compare
f7af45c
to
067f6a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening a pull request. This is a great first start!
@@ -188,6 +188,30 @@ module QueueAdapters | |||
end.to raise_error ArgumentError | |||
end | |||
end | |||
|
|||
if Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new('7.1.0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One option we can consider is major version bumping aws-sdk-rails to hard depend on Rails 7.1, and dropping old dependencies. I would not be against this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change has no effect on the old rails version, so it could be tagged as minor change.
but if there is no other opportunity like this PR(supports Rails 7.1 feature), I think it would be a good idea to cut off old version's support and major bumping with this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll talk with the team and get back to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a minor version release is fine for this. Checking the dependencies, they're already loose.
067f6a3
to
483d01c
Compare
641f944
to
ad7856a
Compare
this supports Rails 7.1 feature `ActiveJob::Base.perform_all_later`
ad7856a
to
1941d8d
Compare
Would you be interested in adding a real "integration test" for this feature? This repo should have a sample rails app that minimally sets up each basic feature for testing. It would be nice to have a basic working example and document it too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
@@ -188,6 +188,30 @@ module QueueAdapters | |||
end.to raise_error ArgumentError | |||
end | |||
end | |||
|
|||
if Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new('7.1.0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a minor version release is fine for this. Checking the dependencies, they're already loose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - Thanks for the contribution!
I'll do 👍 |
Yes - if you'd like to help upgrade the sample app and add a small job that demonstrates the feature, that would be very helpful. The sample app is very minimal so I don't see issue with upgrading it. |
Rails 7.1 adds API for queuing multiple jobs simultaneously.
To use this feature, we need to implement
#enqueue_all
method in job adapter.references:
close: #105