From 204bf59b22a68e3d13e1f97097a9e8eebb8970f6 Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Tue, 11 Nov 2025 12:08:52 -0800 Subject: [PATCH] Add TODO --- backend/src/ee/services/pki-acme/pki-acme-service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/ee/services/pki-acme/pki-acme-service.ts b/backend/src/ee/services/pki-acme/pki-acme-service.ts index 0f4c081b0..7cc9ae6f1 100644 --- a/backend/src/ee/services/pki-acme/pki-acme-service.ts +++ b/backend/src/ee/services/pki-acme/pki-acme-service.ts @@ -724,6 +724,8 @@ export const pkiAcmeServiceFactory = ({ return { certificateId: result.certificateId }; } else { const { certificateAuthority } = (await certificateProfileDAL.findByIdWithConfigs(profileId, tx))!; + // TODO: this is pretty slow, and we are holding the transaction open for a long time, + // we should queue the certificate issuance to a background job instead const cert = await orderCertificate( { caId: certificateAuthority.id,