feat: complete production workflow migration
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=GYXX Flow Python Scheduler
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=gyxx-flow
|
||||
Group=gyxx-flow
|
||||
WorkingDirectory=/opt/gyxx-flow
|
||||
Environment=PYTHONUTF8=1
|
||||
Environment=GYXX_PROJECT_ROOT=/opt/gyxx-flow
|
||||
Environment=GYXX_DATA_ROOT=/var/lib/gyxx-flow
|
||||
EnvironmentFile=-/etc/gyxx-flow/gyxx-flow.env
|
||||
ExecStart=/opt/gyxx-flow/.venv/bin/python -m gyxx_flow schedule run
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
TimeoutStopSec=90s
|
||||
KillSignal=SIGTERM
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user