misc: improved commnts

This commit is contained in:
Sheen Capadngan
2025-10-28 06:06:45 +08:00
parent 8214e07abd
commit d310fef792
3 changed files with 2 additions and 9 deletions
+2 -1
View File
@@ -87,7 +87,8 @@ export const runMigrations = async ({ applicationDb, auditLogDb, logger, onMigra
await applicationDb.transaction(async (tx) => {
await tx.raw("SELECT pg_advisory_xact_lock(?)", [PgSqlLock.BootUpMigration]);
// Signal that this container is running migrations
// Signal that this container is running migrations so that it can be marked as healthy/alive
// This is to prevent the container from being killed by the orchestrator
if (onMigrationLockAcquired) {
onMigrationLockAcquired();
}