ricardorodrigues-ca / zoom-recording-downloader

Downloads and organizes all cloud recordings from your Zoom Business account
MIT License
127 stars 65 forks source link

suggest running this with a shell script to auto-retry #27

Open alexknowshtml opened 1 year ago

alexknowshtml commented 1 year ago

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 `

justin808 commented 1 year ago

But would this restart at the beginning? Could we retry within the program?

alexknowshtml commented 1 year ago

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.