-
Notifications
You must be signed in to change notification settings - Fork 29
🐛 Fixes catalog's synchronization background task continues errors due to faulty service info #6344
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6344 +/- ##
=========================================
- Coverage 84.5% 82.3% -2.3%
=========================================
Files 10 1103 +1093
Lines 214 48647 +48433
Branches 25 925 +900
=========================================
+ Hits 181 40068 +39887
- Misses 23 8408 +8385
- Partials 10 171 +161
Flags with carried forward coverage won't be shown. Click here to find out more.
|
services/catalog/src/simcore_service_catalog/core/background_tasks.py
Outdated
Show resolved
Hide resolved
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.
Nice, thanks.
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.
perfect, thanks!
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.
👍
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/catalog/services.py
Show resolved
Hide resolved
services/catalog/src/simcore_service_catalog/core/background_tasks.py
Outdated
Show resolved
Hide resolved
6ad5396
to
f6dae2f
Compare
|
What do these changes do?
Prevents the background sync task in
catalog
from continuously "stopping and restarting" due to errors in the director's response for certain items in the list. This change ensures that the task can still complete for the remaining items despite errors.This is the error recurrently logged by the background sync task:
We have improved the resilience of these routines by catching expected exceptions, issuing a warning, and continuing to process the remaining elements in the loop without interruption.
Misc
Related issue/s
How to test
Dev-ops checklist