Files
ansible-role-chill/templates/systemd/chill-send-sms@.service
T
julienfastreandClaude Sonnet 5.5 e3b8d2a5b3 Remove one-off containers after sending short messages
`docker compose run` creates a new container on each execution, which
accumulated (`<env>-cron-run-<id>`). Use `--rm` to remove it at the end.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VnXP3D1srf5k8MrtPFUz93
2026-11-20 16:59:31 +01:00

9 lines
302 B
Desktop File

[Unit]
Description=Execute send-short-messages for chill with environment %i
[Service]
User={{ as_user }}
ExecStart=/usr/bin/docker compose --file {{ install_dir }}/%i/compose.yaml run --rm cron bin/console chill:calendar:send-short-messages
Type=simple
# execute maximum 30 minutes
RuntimeMaxSec=1800