4.2 KiB
4.2 KiB
Task Plan
Checklist
- Confirm the changed
people_flow_projectslice is locally validated before deploy. - Verify the plan covers remote sync, service rebuild, health verification, and post-deploy output inspection.
- Sync the updated
people_flow_projectruntime files to10.8.0.11and verify remote hashes. - Rebuild and restart only the
people-flow-projectservice on the remote host. - Verify the remote container is healthy after deployment.
- Print the actual new output structure from the deployed remote code path and note any limitation versus waiting for the next live half-hour webhook.
- Record deployment and verification evidence in the Review section.
Scope And Risks
- Scope: deploy the
people_flow_projectoutput-label changes to10.8.0.11and inspect the newly available output structure from the remote deployed code. - Expected touch points:
managed/people_flow_project/src/people_flow/queue_analytics.py,managed/people_flow_project/src/people_flow/manage_api.py, remote deployment under/home/xiaozheng/managed-portal, and thepeople-flow-projectdocker compose service. - Risk: the currently saved live webhook/window JSON files on the remote host will not gain the new label fields until the next real half-hour window is emitted after restart, so immediate inspection may need to use a direct code-path sample or manage API response rather than a freshly emitted live webhook file.
- Risk: restarting
people-flow-projectresets the current rolling half-hour window boundary; that is acceptable for deployment but should be stated explicitly.
Validation Intent
- Verify remote file parity before rebuilding.
- Check container health and startup logs after deployment.
- Print an actual structure from the deployed remote code path immediately, and distinguish it from the next live webhook file that will only appear after the next rollover.
Review
- Status: completed.
- Result: the updated
people_flow_projectcode is deployed on10.8.0.11, the rebuiltpeople-flow-projectcontainer is healthy, and the deployed remote code path now exposes the new human-readable queue level and change labels. The currently saved live window/webhook files were generated before the next post-restart half-hour rollover, so the most immediate proof comes from the deployed manage API response and a direct runtime-code simulation inside the container. - Verification:
- synced
managed/people_flow_project/src/people_flow/queue_analytics.pyandmanaged/people_flow_project/src/people_flow/manage_api.pyto/home/xiaozheng/managed-portal/managed/people_flow_project/src/people_flow/on10.8.0.11and verified SHA256 parity with local files:queue_analytics.py:dd12c0a7af2d7c1bf68e3496560fe2ea0fb5c1d582bea7c4dada0caf105711c8manage_api.py:c723fd570a29b43cd055dfaca4a5fc9ce1459b55754d2dbd0b8edcdef7da4cf1
- rebuilt and restarted only
people-flow-projectwithdocker compose --env-file managed-portal.10.8.0.11.env up -d --build people-flow-projecton the remote host; - confirmed remote status after deploy:
people-flow-projectisUpandhealthy; - queried the deployed manage API summary endpoint inside the container and observed these actual metrics keys/values from the live response:
{ "queue_level": "normal", "queue_level_label": "人数正常", "previous_queue_level": "few", "previous_queue_level_label": "人少", "status_change": "queue_normalized", "status_change_label": "人数变正常" }; - executed a direct simulation inside the deployed container using the updated
QueueWindowTrackercode path and printed the actual newqueue_metricsJSON:queue_level:crowdedqueue_level_label:人多previous_queue_level:nullprevious_queue_level_label:""status_change:initialstatus_change_label:初始- plus the existing
queue_time_threshold_seconds,over_threshold_count,under_threshold_count, andpeople[]fields;
- noted deployment side effect: restarting
people-flow-projectresets the current rolling 1800-second window, so the next real livehalf_hour_reportfile/webhook emitted after this restart will be the first persisted artifact that contains the new label fields.
- synced