systemd does not send SIGTERM to an activating oneshot; stop waited out TimeoutStopSec=2min and then SIGKILLed the coordinator while it kept building, so a manual stop looked ignored. The driver is a long-running job, and each worker action is already bounded by the driver. Guarded by a control_portal test.
18 lines
829 B
Desktop File
18 lines
829 B
Desktop File
[Unit]
|
|
Description=Archipelago Rust checks, build, signing and publication
|
|
Wants=network-online.target
|
|
After=network-online.target docker.service
|
|
|
|
[Service]
|
|
# Type=exec, not oneshot: systemd does not deliver SIGTERM to an activating
|
|
# oneshot, so `systemctl stop` only took effect after TimeoutStopSec and the
|
|
# portal showed a run as unstoppable for two minutes. The driver is a long-running
|
|
# job; each of its worker actions is bounded to four hours by the driver itself.
|
|
Type=exec
|
|
Environment="ARCHIPELAGO_RELEASE_REASON=Rust/manual release cycle (D-098)"
|
|
ExecStart=/usr/bin/python3 /opt/archipelago/src/infrastructure/pipeline/release-cycle.py
|
|
ExecStopPost=/usr/bin/python3 /opt/archipelago/src/infrastructure/pipeline/cycle-terminal.py
|
|
TimeoutStopSec=2min
|
|
KillMode=control-group
|
|
StandardOutput=journal
|
|
StandardError=journal
|