Skip to content

Commit

Permalink
deploy on edge7
Browse files Browse the repository at this point in the history
  • Loading branch information
efultz committed Jul 26, 2023
1 parent 5f7b5f8 commit 9f219f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-to-jetson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion video_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f219f7

Please sign in to comment.