Skip to content

Commit

Permalink
add task schedule for skare3 dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Apr 18, 2024
1 parent 3a4abdc commit e799934
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"static/*/*/*/*",
"static/*/*/*/*/*",
"templates/*",
"task_schedule.cfg",
],
},
license=(
Expand Down
39 changes: 39 additions & 0 deletions skare3_tools/dashboard/task_schedule.cfg
Original file line number Diff line number Diff line change
@@ -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 [email protected]
#notify [email protected]

<task dashboard>
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

</task>

0 comments on commit e799934

Please sign in to comment.