feat: Scheduled Execution with Cron and Retry Handling

This commit is contained in:
OpenVelo Agent
2026-08-04 20:48:13 +00:00
parent abbfad76dc
commit 1a5c6c5c26
19 changed files with 451 additions and 185 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
set -euo pipefail
cd /app
bot_uid="$(id -u bot)"
bot_gid="$(id -g bot)"
if command -v setpriv >/dev/null 2>&1; then
exec setpriv --reuid="${bot_uid}" --regid="${bot_gid}" --clear-groups -- \
/usr/local/bin/python -m tenbackward
fi
exec su -s /bin/bash bot -c "exec /usr/local/bin/python -m tenbackward"