]> git.openstreetmap.org Git - chef.git/commitdiff
Detect stale tile expiry locks and break them
authorTom Hughes <tom@compton.nu>
Thu, 7 May 2015 07:22:02 +0000 (08:22 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 7 May 2015 07:22:02 +0000 (08:22 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

index 8278545ae3753b55e5603673f13d6099f4112ef4..34761ba85e5201b58d6d0b3d7751549ea03e2269 100644 (file)
@@ -12,7 +12,7 @@ use LockFile::Simple;
 
 my $tiledir = shift @ARGV;
 
-my $lockmgr = LockFile::Simple->make(-autoclean => 1, -max => 1, -hold => 0, -warn => 0);
+my $lockmgr = LockFile::Simple->make(-autoclean => 1, -max => 1, -hold => 0, -warn => 0, -stale => 1);
 
 $lockmgr->lock("${tiledir}/cleanup") || exit 0;