Stop tile cleanup locks being considered stalfe after an hour
authorTom Hughes <tom@compton.nu>
Tue, 12 Nov 2013 18:55:48 +0000 (18:55 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 12 Nov 2013 18:55:48 +0000 (18:55 +0000)
cookbooks/tile/templates/default/cleanup-tiles.erb

index 9adf02aebb6439ffccde3a91e223e16c440e97cc..eebcd41a4f15ec8e1e1a2bdc6795c3ad1592d5b7 100644 (file)
@@ -11,7 +11,7 @@ use LockFile::Simple;
 
 my $tiledir = shift @ARGV;
 
-my $lockmgr = LockFile::Simple->make(-autoclean => 1, -max => 1, -warn => 0);
+my $lockmgr = LockFile::Simple->make(-autoclean => 1, -max => 1, -hold => 0, -warn => 0);
 
 $lockmgr->lock("${tiledir}/cleanup") || exit 0;