# m h dom mon dow (0|7=sun,1=mon)    command

# set PATH, variable substitution is not supported (PATH=$PATH:/my/bin)
PATH=/usr/share/piuparts/master:/usr/share/piuparts:/usr/bin:/bin
PYTHONPATH=/usr/lib/python3/dist-packages

#
# cleanup $HTDOCS/daily.lock
#
@reboot master_cleanup

#
# generate reports twice or three times a day
#  (dinstall runs 1|7|13|19:52, so this is long after mirror pushes...)
#
0  4-23/12 * * * master_shell_runner piuparts-analyze
0  2-23/3 * * * master_shell_runner detect_well_known_errors
0  0-23/3 * * * master_shell_runner piuparts-report
15 23 * * * generate_daily_report

#
# reschedule old logs twice a day
#
0  3,15 * * * reschedule_oldest_logs

#
# monitor for problems several times day
# - these may result in packages being retested
# - if that's not the case, run them from within generate_daily_report
#
30 2-23/3 * * * detect_network_issues
45 2-23/3 * * * detect_piuparts_issues
0  10,22 * * * detect_archive_issues
30 22 * * * report_untestable_packages
0  23 * * * report_stale_reserved_packages

#
# misc
#
0  2  * * * prepare_backup
55 23 * * * gather_bts_stats
42 23 * * * rotate_master_logs

#
# data export for manpages.d.o
#
5 5 * * * distill_alternatives_log
