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
+8 -2
View File
@@ -11,6 +11,7 @@ RUN apt-get update \
git \
ca-certificates \
tzdata \
util-linux \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd --system bot \
@@ -27,14 +28,19 @@ RUN pip install --no-cache-dir --upgrade pip \
COPY --chown=bot:bot crontab/ /app/crontab/
COPY --chown=bot:bot entrypoint.sh /app/entrypoint.sh
COPY --chown=bot:bot run-bot.sh /app/run-bot.sh
COPY --chown=root:root run-bot.sh /usr/local/bin/run-bot.sh
COPY --chown=bot:bot src/ /app/src/
RUN chmod 0755 /app/entrypoint.sh \
&& chmod 0755 /app/crontab/install-cron.sh \
&& chmod 0755 /app/run-bot.sh \
&& chmod 0755 /usr/local/bin/run-bot.sh \
&& chmod 0644 /app/crontab/tenbackward.cron
ENV PYTHONPATH=/app/src
USER bot
# Note: entrypoint.sh runs as root so it can install /etc/cron.d/tenbackward
# and exec cron -f. The cron-launched wrapper drops to the unprivileged
# `bot` user before invoking Python.
ENTRYPOINT ["/app/entrypoint.sh"]