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

Handle cases where job handler class does not exist or just a string in RetryPolicyInterceptor #1025

Conversation

butschster
Copy link
Member

Additionally, made modifications to getRetryPolicy to ensure it returns null when the handler is not a class. This improves error handling and eliminates the risk of encountering runtime errors due to attempted operations on non-existent classes. Corresponding unit tests have been added.

Q A
Bugfix? ✔️
Breaks BC?

This PR is a blocker for spiral/roadrunner-bridge#81

…in `RetryPolicyInterceptor`

Additionally, made modifications to `getRetryPolicy` to ensure it returns `null` when the handler is not a class. This improves error handling and eliminates the risk of encountering runtime errors due to attempted operations on non-existent classes. Corresponding unit tests have been added.
@butschster butschster added this to the 3.10 milestone Dec 8, 2023
@butschster butschster requested a review from msmakouz December 8, 2023 18:07
@butschster butschster self-assigned this Dec 8, 2023
Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a67a187) 89.22% compared to head (3434a31) 89.23%.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1025   +/-   ##
=========================================
  Coverage     89.22%   89.23%           
- Complexity     6192     6194    +2     
=========================================
  Files           816      816           
  Lines         17453    17456    +3     
=========================================
+ Hits          15573    15576    +3     
  Misses         1880     1880           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@butschster butschster closed this Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant