Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
docs(CLAUDE): add note on monitoring new cron jobs with alarms
Victor Hugo dos Santos881b6099cfbc
diff --git a/backend/CLAUDE.md b/backend/CLAUDE.mdindex 203f1d0c6d..6dd0a5215e 100644--- a/backend/CLAUDE.md+++ b/backend/CLAUDE.md@@ -213,6 +213,8 @@ Recurring work runs through the cron manager in `src/lib/cron/cron-job.ts` (`cro};```+3. Add a corresponding alarm in the infrastructure repo so the new job is monitored. Follow the existing pattern in `infisical-shared-cloud/modules/redis_alarms/main.tf` — every cron job must have an alarm defined there. Don't ship a new cron job without wiring up its alarm.+**Handler contract**:- Each scheduled fire runs exactly once across the fleet: pods race for a per-run redlock, the winner executes the handler, and the others no-op. You don't need in-handler locking to guard against concurrent pods.- Handlers must be idempotent at the boundary of `handlerTimeoutMs` (default 5 min). A timeout marks the run failed-final and waits for the next fire — it does NOT retry the same fire, because the timed-out handler may still be running.