Open alexknowshtml opened 1 year ago
But would this restart at the beginning? Could we retry within the program?
The program already handles logging and skipping files that it already downloaded, so this script just picks up wherever it left off.
There is some error handling in the program, but the issue is that the program itself was crashing completely, and you can't quite re-start a program from within itself.
This script is awesome, but I was having a big issue with sporadic errors from Zoom's API crashing the script even after I added more wait times to avoid rate limiting.
After a day of manually restarting, I wrote a little shell script that catches errors, waits 5 seconds, and restarts the script.
Since the script is smart enough to pick up where it left off, everything continues smoothly!
I just put this into a file called
run.sh
and ran./run.sh
on the command line instead of the usual python3 command. Works a charm.`#!/bin/bash
while true; do python3 zoom-recording-downloader.py if [ $? -ne 0 ]; then sleep 5 else break fi done `