Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(agent-harness): ECS health-check grace period for singleton deploys (#5973)

Wolf Mermelstein8ee95d53bd8d
diff --git a/infra/stacks/agent-harness-service/agent_harness_service.ts b/infra/stacks/agent-harness-service/agent_harness_service.ts
index a76f1f65c7..1abb9c70a4 100644
--- a/infra/stacks/agent-harness-service/agent_harness_service.ts
+++ b/infra/stacks/agent-harness-service/agent_harness_service.ts
@@ -270,6 +270,11 @@ export class AgentHarnessService extends pulumi.ComponentResource {
deploymentMinimumHealthyPercent: 0,
deploymentMaximumPercent: 100,
desiredCount: 1,
+ // ALB checks /health every 10s and fails the target after two
+ // misses (~20s). HTTP does not listen until after DB, AWS config,
+ // and JWT secrets, so a 0s grace period trips the circuit breaker
+ // on this stop-then-start replace. Ignore those checks until bind.
+ healthCheckGracePeriodSeconds: 120,
taskDefinitionArgs: {
taskRole: {
roleArn: this.role.arn,