Skip to content

Commit

Permalink
master: add status json cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed May 9, 2024
1 parent 624df78 commit b6b73ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/status-json.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_ndnping():

if ping_prefix:
print(f'ndnping {host_name} with prefix {ping_prefix}', file=sys.stderr)
code, stdout = compose.exec('ndnpingserver', ['ndnping', '-c', '3', '-i', '10', ping_prefix])
code, _ = compose.exec('ndnpingserver', ['ndnping', '-c', '3', '-i', '10', ping_prefix])
result[host_name] = code == 0

return result
Expand Down
3 changes: 2 additions & 1 deletion scripts/crontab-master
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Cron jobs for master container

*/5 * * * * /bin/bash /testbed/scripts/cron-master.sh
*/5 * * * * /bin/bash /testbed/scripts/cron-master.sh
*/8 * * * * /bin/bash -c "python3 /testbed/framework/status-json.py > /testbed/dist/file-server/status.json"

0 comments on commit b6b73ba

Please sign in to comment.