From 27b10a39b826e0ca0b11ef9fbeedd536c0722434 Mon Sep 17 00:00:00 2001 From: sstent Date: Mon, 9 Feb 2026 05:51:50 -0800 Subject: [PATCH] conductor(plan): Mark phase 'Phase 1: Container Environment Preparation' as complete --- .../implement_ttl_heartbeat_20260208/plan.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 conductor/tracks/implement_ttl_heartbeat_20260208/plan.md diff --git a/conductor/tracks/implement_ttl_heartbeat_20260208/plan.md b/conductor/tracks/implement_ttl_heartbeat_20260208/plan.md new file mode 100644 index 0000000..be9bb83 --- /dev/null +++ b/conductor/tracks/implement_ttl_heartbeat_20260208/plan.md @@ -0,0 +1,22 @@ +# Plan: Implement TTL Heartbeat Service Registration (`implement_ttl_heartbeat`) + +## Phase 1: Container Environment Preparation [x] [checkpoint: 51b8fce] +- [x] Task: Update `Dockerfile` to install `curl` and `jq` (f7fe258) +- [x] Task: Verify `litefs.yml` points to `entrypoint.sh` (should already be correct) (verified) +- [x] Task: Conductor - User Manual Verification 'Phase 1: Container Environment Preparation' (Protocol in workflow.md) + +## Phase 2: Script Implementation [ ] +- [ ] Task: Refactor `entrypoint.sh` with the TTL Heartbeat logic + - [ ] Implement `register_service` with TTL check definition + - [ ] Implement `pass_ttl` loop + - [ ] Implement robust `stop_app` and signal trapping + - [ ] Ensure correct Primary/Replica detection logic (LiteFS 0.5: Primary = No `.primary` file) +- [ ] Task: Conductor - User Manual Verification 'Phase 2: Script Implementation' (Protocol in workflow.md) + +## Phase 3: Deployment and Verification [ ] +- [ ] Task: Commit changes and push to Gitea to trigger build +- [ ] Task: Monitor Gitea build completion +- [ ] Task: Deploy updated Nomad job (forcing update if necessary) +- [ ] Task: Verify "Clean" state in Consul (only one primary registered) +- [ ] Task: Verify Failover/Stop behavior (immediate deregistration vs TTL expiry) +- [ ] Task: Conductor - User Manual Verification 'Phase 3: Deployment and Verification' (Protocol in workflow.md)