-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add task schedule for skare3 dashboard
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ | |
"static/*/*/*/*", | ||
"static/*/*/*/*/*", | ||
"templates/*", | ||
"task_schedule.cfg", | ||
], | ||
}, | ||
license=( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |