Nice work on the synchronizer @ByambaBird .
We need a more out of the box automation. I "crafted" the script below but it keeps slamming the server with dap commands and spiking our CPU every time. Any advice on improving our script (run by cron job every 4 hours)?
Each table is initialized manually before adding it to this script to sync.
import subprocess
cd2_tables = ['account_users','accounts','assignments'...]
for x in cd2_tables:
p1 = subprocess.run('dap --loglevel info --logfile /home/canvas/dap_syncdb/dap_syncdb.log syncdb --namespace canvas --table ' + str(x), shell=True, text=True)
I use shell and text to view the output when I run the process manually. Otherwise, it runs every 4 hours as a cron job.