internetee-registry/app/lib
oleghasjanov a11c0fca2d fix: handle HTTPClient::KeepAliveDisconnected in OrgRegistrantPhoneCheckerJob
This commit implements a reliable connection error handling solution for the
Company Register API integration. The job previously failed when connection
errors occurred without proper recovery mechanisms.
The implementation:
Adds a lightweight Retryable module with configurable retry logic
Implements smart caching of API responses (1 day expiration)
Handles common network errors like KeepAliveDisconnected and timeouts
Provides a fallback mechanism when all retry attempts fail
Ensures test reliability with cache-skipping in test environment
Testing:
Added specific tests for both recovery and fallback scenarios
Verified cache behavior in production and test environments
Resolves connection errors observed in production logs without adding
unnecessary complexity to the codebase.
2025-03-06 11:38:09 +02:00
..
shunter fixed tests 2022-11-07 15:59:48 +02:00
retryable.rb fix: handle HTTPClient::KeepAliveDisconnected in OrgRegistrantPhoneCheckerJob 2025-03-06 11:38:09 +02:00
shunter.rb Changed redis setup 2022-10-28 14:00:18 +03:00
to_stdout.rb fixed codeclimate errors (partically) 2021-09-09 09:19:09 +03:00