From e7999344f6da6598c87bc9248065330eb95b062b Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Thu, 18 Apr 2024 11:12:58 -0400 Subject: [PATCH] add task schedule for skare3 dashboard --- setup.py | 1 + skare3_tools/dashboard/task_schedule.cfg | 39 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 skare3_tools/dashboard/task_schedule.cfg diff --git a/setup.py b/setup.py index e0b129d..59b09d1 100755 --- a/setup.py +++ b/setup.py @@ -58,6 +58,7 @@ "static/*/*/*/*", "static/*/*/*/*/*", "templates/*", + "task_schedule.cfg", ], }, license=( diff --git a/skare3_tools/dashboard/task_schedule.cfg b/skare3_tools/dashboard/task_schedule.cfg new file mode 100644 index 0000000..273830b --- /dev/null +++ b/skare3_tools/dashboard/task_schedule.cfg @@ -0,0 +1,39 @@ +# Configuration file for task_schedule.pl to run astromon jobs + +subject skare3 dashboard +timeout 600 # Default tool timeout +heartbeat_timeout 1 # Maximum age of heartbeat file (seconds) +iterations 1 # Run once then shut down task_schedule +print_error 1 # Print full log of errors +disable_alerts 0 # Don't disable alerts since this jobs runs just once/day +loud 0 # Run loudly or quietly (production mode) + +# Data files and directories. The *_dir vars can have $ENV{} vars which + +data_dir /export/kadi/dashboard/data # Data file directory +log_dir /export/kadi/dashboard/logs # Log file directory +master_log update_dashboard.log # Composite master log (created in log_dir) + +# Email addresses that receive an alert if there was a severe error in +# running jobs (i.e. couldn't start jobs or couldn't open log file). +# Processing errors *within* the jobs are caught with watch_cron_logs + +alert javier.gonzalez@cfa.harvard.edu +#notify javier.gonzalez@cfa.harvard.edu + + + cron * * * * * + check_cron * * * * * + #exec 1: source $ENV{HOME}/.ci-auth + exec 1: skare3-dashboard -o /export/kadi/dashboard/packages.json + exec 1: skare3-test-dashboard -b -o /export/kadi/dashboard/test_results.json + exec 1: mv /export/kadi/dashboard/packages.json /proj/sot/ska/www/ASPECT/skare3/dashboard/ + exec 1: mv /export/kadi/dashboard/test_results.json /proj/sot/ska/www/ASPECT/skare3/dashboard/ + + # the old dashboard + exec 1: skare3-dashboard -o /export/kadi/dashboard/index.html + exec 1: skare3-test-dashboard -b -o /export/kadi/dashboard/test_results.html --static-dir https://cxc.cfa.harvard.edu/mta/ASPECT/skare3/dashboard/static --log-dir https://icxc.cfa.harvard.edu/aspect/skare3/testr/ska3-masters + exec 1: mv /export/kadi/dashboard/index.html /proj/sot/ska/www/ASPECT/skare3/dashboard-1/ + exec 1: mv /export/kadi/dashboard/test_results.html /proj/sot/ska/www/ASPECT/skare3/dashboard-1/tests/index.html + +