Zalohovani vsech podstatnych souboru
This commit is contained in:
18
skills/detach/systemd/tasks-daemon.service
Normal file
18
skills/detach/systemd/tasks-daemon.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=nanobot detach tasks daemon (drain inbox)
|
||||
After=nanobot.service
|
||||
# Tolerate transient startup crashes without permanently latching the pipeline.
|
||||
# 20 retries per 30 min, then pause + auto-resume as the window slides — no manual reset-failed.
|
||||
StartLimitIntervalSec=1800
|
||||
StartLimitBurst=20
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# On a crash (exit!=0) retry after a delay; clean drain (exit 0) and systemd-initiated
|
||||
# stop (SIGTERM) do not restart. Gives a fixed deploy time to recover automatically.
|
||||
Restart=on-failure
|
||||
RestartSec=60
|
||||
Environment=PATH=%h/.local/bin:/usr/bin:/bin
|
||||
ExecStart=%h/.nanobot/workspace/skills/detach/scripts/tasks-daemon.py
|
||||
StandardOutput=append:%h/.nanobot/workspace/log/tasks-daemon.stdout.log
|
||||
StandardError=append:%h/.nanobot/workspace/log/tasks-daemon.stderr.log
|
||||
Reference in New Issue
Block a user