-
Notifications
You must be signed in to change notification settings - Fork 39
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
1827 Apply executeWithRetries and the network one throughout #2285
Conversation
6dc7f4e
to
503f583
Compare
const patient = patientDB.dataValues; | ||
return { | ||
...patient, | ||
data: { | ||
...patient.data, | ||
externalData: { | ||
...patient.data.externalData, | ||
COMMONWELL: cwData, | ||
}, | ||
}, | ||
}; |
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.
Avoid casting
packages/core/src/external/carequality/pd/process-inbound-pd.ts
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.
My main concern here is with using executeWithRetries not at the lowest possible level. My heuristic would be to always put it actually in the file that uses axios or the s3 sdk or the cw sdk as opposed to a more upstream function. I think of the retries as a low level protocol that should be done as close to the call to the external service as possible.
thoughts?
b279526
to
0ae10e7
Compare
packages/core/src/external/carequality/ihe-gateway-v2/ihe-gateway-v2-logic.ts
Show resolved
Hide resolved
80aa04b
to
acf1231
Compare
Ref. metriport/metriport-internal#1827 Signed-off-by: Rafael Leite <[email protected]>
- apply executeWithRetries to lower level funcitons - remove the deprecated S3Utils from lambdas package Ref. metriport/metriport-internal#1827 Signed-off-by: Rafael Leite <[email protected]>
Ref. metriport/metriport-internal#1827 Signed-off-by: Rafael Leite <[email protected]>
Ref: #000 - [email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - [email protected] - @metriport/[email protected] - @metriport/[email protected] - [email protected] Signed-off-by: Rafael Leite <[email protected]>
acf1231
to
899a914
Compare
Ref. metriport/metriport-internal#1827
Dependencies
Description
Follow-up to #2272, this attempts to add retries (mostly network ones) to calls to external services.
executeWithRetries
: by default, retry on everyerror
executeWithNetworkRetries
: by default, retry only onECONNREFUSED
andECONNRESET
Refactor some logic especially around error handling.
Upgrade Axios to 1.4.0 to match API's.
Testing
Converting document to PDF worksNo local implRelease Plan