run_job.sh was overwriting the log on every cron fire, making it impossible to see run history. Switch to append mode, print a ── YYYY-MM-DD HH:MM:SS ── separator before each run, and trim to the last 1000 lines after each run to keep logs bounded.
run_job.sh was overwriting the log on every cron fire, making it impossible to see run history. Switch to append mode, print a ── YYYY-MM-DD HH:MM:SS ── separator before each run, and trim to the last 1000 lines after each run to keep logs bounded.