Compare commits

...
Author SHA1 Message Date
chemavx 0f8bd407f4 decommission(F3): apagar bot, api y dashboard (replicas 0)
Primer paso del apagado ordenado: se detiene el ciclo de evaluación con
postgres aún vivo, para que el dump final sea la foto exacta del cierre
sin ciclos a medias. Postgres y cronjobs se apagan en commits siguientes.
2026-07-06 12:05:43 +00:00
chemavx dc45c913a5 decommission(F2): silenciar notificaciones Telegram de la app polymarket-bot
Se retiran las suscripciones on-sync-failed / on-health-degraded: durante
el apagado (F3) generarían ruido sin valor. No hay trigger 'informativo'
viable: escalar a 0 vía git deja la app Synced/Healthy. El resto de apps
conservan sus notificaciones.
2026-07-06 11:47:33 +00:00
chemavx abcb38bd6d decommission(F2): retirar smoke test PostSync de polymarket-bot
El Job notificaba a Telegram tras cada sync; en decomisión ya no hay
deploys que verificar y sus avisos serían ruido durante el apagado.
2026-07-06 11:47:11 +00:00
Gitea CI 73bf1b6351 ci: update researchowl image to d31badeb [skip ci] 2026-07-05 16:01:12 +00:00
Gitea CI fea711375e ci: update researchowl image to 7d07375d [skip ci] 2026-07-04 20:26:34 +00:00
Gitea CI 8cd40002c8 ci: update researchowl image to 76c927f0 [skip ci] 2026-07-04 20:20:00 +00:00
Gitea CI b1b86945c3 ci: update researchowl image to 397546a3 [skip ci] 2026-07-04 20:18:47 +00:00
Gitea CI d0e8eaa001 ci: update researchowl image to 57f341fc [skip ci] 2026-07-04 11:26:10 +00:00
Gitea CI a78de3eacd ci: update researchowl image to 6c807212 [skip ci] 2026-07-04 11:21:02 +00:00
Gitea CI 5ef73e6705 ci: update researchowl image to becc43f7 [skip ci] 2026-07-04 11:16:57 +00:00
6 changed files with 4 additions and 75 deletions
-3
View File
@@ -3,9 +3,6 @@ kind: Application
metadata:
name: polymarket-bot
namespace: argocd
annotations:
notifications.argoproj.io/subscribe.on-sync-failed.telegram: "5138407666"
notifications.argoproj.io/subscribe.on-health-degraded.telegram: "5138407666"
spec:
destination:
namespace: polymarket-bot
+1 -1
View File
@@ -5,7 +5,7 @@ metadata:
namespace: polymarket-bot
spec:
progressDeadlineSeconds: 600
replicas: 1
replicas: 0
revisionHistoryLimit: 10
selector:
matchLabels:
+1 -1
View File
@@ -5,7 +5,7 @@ metadata:
namespace: polymarket-bot
spec:
progressDeadlineSeconds: 600
replicas: 1
replicas: 0
revisionHistoryLimit: 10
selector:
matchLabels:
+1 -1
View File
@@ -5,7 +5,7 @@ metadata:
namespace: polymarket-bot
spec:
progressDeadlineSeconds: 600
replicas: 1
replicas: 0
revisionHistoryLimit: 10
selector:
matchLabels:
-68
View File
@@ -1,68 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: postsync-smoke-test
namespace: polymarket-bot
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
ttlSecondsAfterFinished: 600
backoffLimit: 0
template:
spec:
restartPolicy: Never
containers:
- name: smoke-test
image: curlimages/curl:latest
env:
- name: TELEGRAM_BOT_TOKEN
valueFrom:
secretKeyRef:
name: telegram-notify-infisical
key: TELEGRAM_BOT_TOKEN
- name: TELEGRAM_CHAT_ID
valueFrom:
secretKeyRef:
name: telegram-notify-infisical
key: TELEGRAM_CHAT_ID
command: ["/bin/sh", "-c"]
args:
- |
set -e
API="http://api.polymarket-bot.svc.cluster.local:8000"
DASH="http://dashboard.polymarket-bot.svc.cluster.local:80"
notify() {
curl -s --max-time 10 -X POST \
"https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
-d "chat_id=${TELEGRAM_CHAT_ID}" \
--data-urlencode "text=$1" \
> /dev/null || true
}
fail() {
notify "[FAIL] polymarket-bot PostSync: $1"
exit 1
}
echo "--- [1/3] GET /api/summary ---"
SUMMARY=$(curl -sf --max-time 15 --retry 3 --retry-delay 5 --retry-all-errors \
"$API/api/summary") || fail "GET /api/summary unreachable"
echo "$SUMMARY"
echo "$SUMMARY" | grep -qE '"paper_mode"\s*:\s*true' \
|| fail "paper_mode is not true"
echo "OK"
echo "--- [2/3] GET /api/trades?status=open ---"
curl -sf --max-time 15 --retry 3 --retry-delay 5 --retry-all-errors \
"$API/api/trades?status=open" > /dev/null || fail "GET /api/trades unreachable"
echo "OK"
echo "--- [3/3] Dashboard HTTP 200 ---"
curl -sf --max-time 15 --retry 3 --retry-delay 5 --retry-all-errors \
"$DASH/" > /dev/null || fail "dashboard returned non-200"
echo "OK"
notify "[OK] polymarket-bot PostSync passed"
echo "=== polymarket-bot: all smoke tests passed ==="
+1 -1
View File
@@ -44,7 +44,7 @@ spec:
spec:
containers:
- name: researchowl
image: git.chemavx.xyz/chemavx/researchowl:a23810b9
image: git.chemavx.xyz/chemavx/researchowl:d31badeb
imagePullPolicy: Always
env:
- name: TELEGRAM_BOT_TOKEN