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
This commit is contained in:
1 parent
2dabbc0503
commit
e3b8d2a5b3
1 file changed
+1
-1
@@ -3,7 +3,7 @@ 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 cron bin/console chill:calendar:send-short-messages
|
||||
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
|
||||
Reference in new issue
Block a user