From bcc5fd44e7b2019a2a81abbb0d8202fe28ca9740 Mon Sep 17 00:00:00 2001 From: "jj.wang" Date: Wed, 21 Oct 2026 07:19:39 +0000 Subject: [PATCH] Cron entry script for oregon (tick every 2 minutes under exec --secret-env) --- cron/agentd-tick.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 cron/agentd-tick.sh diff --git a/cron/agentd-tick.sh b/cron/agentd-tick.sh new file mode 100755 index 0000000..e79e6be --- /dev/null +++ b/cron/agentd-tick.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# cron entry (*/2): one agentd tick under server-access exec (Plane tokens in the process env only), with a lock. +# The outer flock skips a tick while the previous one still runs; agentd also holds its own state 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 tick --once >> /home/ubuntu/.gwent-board/agentd-cron.log 2>&1