[Unit] Description=ImaGen worker (consumes imagen.jobs queue) Documentation=https://mgit.msbls.de/m/ImaGen/issues/8 Wants=network-online.target After=network-online.target [Service] Type=simple ExecStart=%h/dev/ImaGen/bin/imagen worker WorkingDirectory=%h/dev/ImaGen EnvironmentFile=%h/.dotfiles/.env.imagen-worker Restart=on-failure RestartSec=5 # Give the worker time to finish an in-flight generation on shutdown # (FLUX dev up to ~30s, plus the cloud-sync write-back). TimeoutStopSec=60 [Install] WantedBy=default.target