diff --git a/.github/workflows/deploy-to-jetson.yml b/.github/workflows/deploy-to-jetson.yml index bbd99ed..0c245b6 100644 --- a/.github/workflows/deploy-to-jetson.yml +++ b/.github/workflows/deploy-to-jetson.yml @@ -16,7 +16,8 @@ jobs: # set up a matrix, which can force the job to run on all runners strategy: matrix: - targets: [edge1, edge2, edge3, edge4, edge5, edge6, edgethalos] + # targets: [edge1, edge2, edge3, edge4, edge5, edge6, edge7, edgethalos] + targets: [edge2, edge5, edge7] # The type of runner that the job will run on runs-on: ${{ matrix.targets }} diff --git a/video_fetch.py b/video_fetch.py index 706bd60..384fb85 100644 --- a/video_fetch.py +++ b/video_fetch.py @@ -182,13 +182,14 @@ def main(dbname, dbuser, thalos_video_dir, thalos_cam_name, output_dir, passphra cpool = SimpleConnectionPool(1, 1, database=dbname, user=dbuser) - schedule.every(1).seconds.do(video_fetch, cpool, thalos_dir, thalos_cam_name, output_dir, passphrase_file, thalos_video_suffix ) + schedule.every(5).minutes.do(video_fetch, cpool, thalos_dir, thalos_cam_name, output_dir, passphrase_file, thalos_video_suffix ) while 1: n = schedule.idle_seconds() if n is None: # no more jobs + print("No more jobs. exiting") break elif n > 0: # sleep exactly the right amount of time