Commit a1d56ced by Xin Xiao Committed by GitHub

fix: make external S3 endpoint check non-blocking during health check (#6864)

* fix: fix left-aligned list marker styling in chat welcome guide

* fix: make external S3 endpoint check non-blocking during health check
parent 29caf58a
......@@ -83,10 +83,14 @@ export class S3BaseBucket {
});
try {
await Promise.all([
this.client.getObjectMetadata({ key }),
this._externalClient?.checkObjectExists({ key })
]);
await this.client.getObjectMetadata({ key });
if (this._externalClient) {
this._externalClient.checkObjectExists({ key }).catch((err) => {
logger.warn('External S3 endpoint check failed, using internal only', {
error: err?.message || String(err)
});
});
}
} finally {
await this.client.deleteObject({ key }).catch((err) => {
if (isFileNotFoundError(err)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment