AI Implementation feature(1089): Scheduled Execution with Cron and Retry Handling (#9)

This commit was merged in pull request #9.
This commit is contained in:
2026-08-04 20:48:16 +00:00
parent 3545b81546
commit 5f6ddf76a4
27 changed files with 644 additions and 272 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"