-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtask_schedule_check_cron.cfg
30 lines (24 loc) · 1.25 KB
/
task_schedule_check_cron.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Configuration file for task_schedule.pl to do a daily check of the kadi cron jobs.
subject Kadi check cron jobs
timeout 3000 # Default tool timeout
heartbeat_timeout 10 # 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
# get interpolated. (Note lack of task name after TST_DATA because this is just for test).
data_dir $ENV{SKA}/data/kadi # Data file directory
log_dir $ENV{SKA}/data/kadi/logs # Log file directory
heartbeat task_sched_heartbeat_check_cron
# Email addresses that receive an alert if there was a severe error in running jobs.
alert aca@cfa.harvard.edu
# Define task parameters
# Apparently check_cron cannot be the only thing in the job so we make a dummy exec.
<task kadi_check_cron>
cron * * * * *
exec /bin/ls > /dev/null
check_cron * * * * *
<check>
</check>
</task>