fix(ops): surface pre-record schedule failures
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a06bfe-2a55-7ed3-bacd-879977b099bf
This commit is contained in:
parent
fc38ca0fdf
commit
9394c40e3a
5 changed files with 45 additions and 3 deletions
|
|
@ -69,6 +69,18 @@ ssh -o BatchMode=yes -o ConnectTimeout=15 "${SSH_HOST}" "export KUBECONFIG=/etc/
|
|||
echo '--- API health ---'
|
||||
kubectl -n ${NS} exec deploy/actcore-api -- /app/.venv/bin/python3 -c 'import urllib.request; print(urllib.request.urlopen(\"http://127.0.0.1:8010/health\").read().decode())'
|
||||
echo
|
||||
echo '--- deterministic schedule verdicts ---'
|
||||
# Run the repository-owned status engine where DB, Temporal, State Hub, and
|
||||
# working-memory sources are reachable. Exit 1 means the report found a
|
||||
# missed/failed automation and is evidence, not a transport failure; continue
|
||||
# with the bounded SQL detail below. Exit >1 means the report itself failed.
|
||||
status_rc=0
|
||||
kubectl -n ${NS} exec deploy/actcore-worker -- /app/.venv/bin/python3 -m activity_core.automation_status \
|
||||
--since '${SINCE_UTC}' --timezone UTC --format human || status_rc=\$?
|
||||
if [ \"\$status_rc\" -gt 1 ]; then
|
||||
exit \"\$status_rc\"
|
||||
fi
|
||||
echo
|
||||
echo '--- runs by activity ---'
|
||||
kubectl -n ${NS} exec actcore-app-db-0 -- psql -U actcore -d actcore -c \"
|
||||
SELECT d.name, d.enabled, count(*) AS runs,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue