Skip to content

Commit

Permalink
quickcheck: Change time limits
Browse files Browse the repository at this point in the history
We now have seperate FULL and INCREMENTAL backup jobs. Also we have the
new REFRESH ('%') backup job. The 4/5 hours time limit was to low
anyway, so implement new time limits:

INCREMENTAL : 10 hours
EXPIRE job  : 10 hours
FULL        : 3 days
BALANCE     : 3 days
REFRESH     : 3 days
  • Loading branch information
donald committed Apr 7, 2025
1 parent 1587e35 commit 1030ca3
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions bin/quickcheck.pl
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,28 @@ sub check_progress {
for my $line (split "\n",$lines) {
chomp($line);
my ($pid,$text,$since)=split '\|',$line;
my $hours=(time-$since)/60/60;
if ($hours>4 && $text !~ /idle, waiting/) {
if ($text !~ /BACKUP cfdl_imapspool_2/ || $hours>5) {
fail ("single job running for over 4 hours : $text since ".localtime($since));
$fail++;
$text =~ /idle, waiting/ and next;
my $hours=(time - $since) / 60 / 60;
if ($hours > 10) {
if ($text =~ /^BACKUP I/) {
fail("INCREMENTAL job running for over 10 hours: $text since" . localtime($since));
} elsif ($text =~ /^EXPIRE/) {
fail("EXPIRE job running for over 10 hours: $text since" . localtime($since));
}
if ($hours > 72) {
if ($text =~ /^BACKUP F/) {
fail("FULL job running for over 3 days $text since" . localtime($since));
} elsif ($text =~ /^BALANCE/) {
fail ("BALANCE job running for over 3 days : $text since ".localtime($since));
} elsif ($text =~ /^BACKUP %/) {
fail("REFRESH job running for over 3 days $text since" . localtime($since));
}
}
}
}
$fail or ok('no jobs running for over 4 (or 5) hours');
$fail or ok('all known jobs in their time limits');
}


check_processes();
check_space();
check_job('cfdl_imapspool_2',1600) if $hostname eq 'done';
Expand Down

0 comments on commit 1030ca3

Please sign in to comment.