#!/usr/bin/env bash # oregon cron entry (*/2) -- ROLLBACK ONLY since PAD-11: the dispatcher runs on the LXC agentd-01 # (cron/agentd-tick-lxc.sh). Never run both: two dispatchers double-dispatch. See docs/runbook.md "回滚到 oregon". # One agentd tick under server-access exec (Plane tokens in the process env only), with a lock. exec flock -n /home/ubuntu/.gwent-board/agentd.lock \ timeout 900 python3 -I /home/ubuntu/.local/share/server-access-client/agent-access.py \ --config https://nas.tail9531b.ts.net:8443/identity/agent.json exec \ --secret-env PLANE_OREGON_API_TOKEN=PLANE_OREGON_API_TOKEN \ --secret-env PLANE_WINDOW10_API_TOKEN=PLANE_WINDOW10_API_TOKEN --timeout 850 -- \ python3 /home/ubuntu/Documents/wjj/project/plane-agentd/cli/agentd \ --config /home/ubuntu/Documents/wjj/project/plane-agentd/config/agentd.oregon.yaml \ tick --once >> /home/ubuntu/.gwent-board/agentd-cron.log 2>&1