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
Inaccurate comment in ApplicationJob template #40318
Comments
If the database is slow to respond an
AdapterTimeout eventually inherits from StandardError which is rescued by the default rescue . I think this is a bug and not by design.
|
This issue has been automatically marked as stale because it has not been commented on for at least three months. |
Still an issue. |
This issue has been automatically marked as stale because it has not been commented on for at least three months. |
Still an issue. |
While true, this is unlikely given the database query would be a
@ce07c3 how do you propose this be improved? Is it an issue with the code comments or is there a change to functionality you think should be made? |
It's just an example. Even if that were the only problem, if it's 99%, it's still not generally true, unfortunately, which the documentation should strive for. There are other deserialization errors that can occur. Since # Most jobs are safe to ignore if the underlying records are no longer available
# discard_on ActiveJob::DeserializationError
I believe all that needs to be changed is the comment. |
Okay, I see your point - do you want to propose new wording? https://guides.rubyonrails.org/contributing_to_ruby_on_rails.html runs you through how to make a PR with your proposed changes 👍 |
This issue has been automatically marked as stale because it has not been commented on for at least three months. |
https://github.com/rails/rails/blob/6-0-stable/activejob/lib/rails/generators/job/templates/application_job.rb.tt:
This error is raised for any errors during deserialization, not exclusively for AR records that are no longer available.
https://github.com/rails/rails/blob/6-0-stable/activejob/lib/active_job/arguments.rb:
Say the database is slow to respond and the query times out, then this would raise a
DeserializationError
error as well.The text was updated successfully, but these errors were encountered: