diff --git a/deploy/systemd/thor.service b/deploy/systemd/thor.service index 3d6f35a..7a8bc75 100644 --- a/deploy/systemd/thor.service +++ b/deploy/systemd/thor.service @@ -10,7 +10,7 @@ Group=thor WorkingDirectory=/opt/thor/app # THOR_SHA, written by thor_deploy.sh: the commit /health reports. EnvironmentFile=-/opt/thor/revision.env -ExecStart=/opt/thor/venv/bin/gunicorn --workers 2 --bind 127.0.0.1:8000 --access-logfile - thor.web.wsgi:app +ExecStart=/opt/thor/venv/bin/gunicorn --workers 2 --bind 127.0.0.1:8000 --no-control-socket --access-logfile - thor.web.wsgi:app Restart=always RestartSec=5 NoNewPrivileges=true diff --git a/docs/contract.md b/docs/contract.md index a57dcc0..98ef68d 100644 --- a/docs/contract.md +++ b/docs/contract.md @@ -47,7 +47,9 @@ Authorization: Bearer ``` - **`covered`** is true only when there is a ticket you can comment on: an incident with a live ticket, or a known condition with a tracking ticket. **`ticket_id`** is that ticket. -- While a Thor check runs in **shadow** (all of phase 1), its incidents are listed with +- Each Thor check is off, shadow or live (set per check in `/etc/thor/thor.json`). Since + 2026-11-27 the memory check is **live**; reboots, fencing and Ceph are still in shadow. +- While a Thor check runs in **shadow**, its incidents are listed with `"mode": "shadow"` and `"ticket_id": null`, and they do **not** make `covered` true: there is nothing in Tinker to comment on, so open your own ticket. Logging the shadow incident's key next to your ticket helps the comparison before Thor goes live. diff --git a/requirements.txt b/requirements.txt index 3a1f4fb..a734d84 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ flask>=3.0 -gunicorn>=22 +gunicorn>=27 # --no-control-socket (deploy/systemd/thor.service) pymysql>=1.1 requests>=2.32 pyjwt[crypto]>=2.9