From: Tom Hughes Date: Thu, 7 May 2015 07:22:02 +0000 (+0100) Subject: Detect stale tile expiry locks and break them X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/fc69a33d6cab4f2279f3ca0e6df518dbc59a78e0 Detect stale tile expiry locks and break them --- diff --git a/cookbooks/tile/templates/default/cleanup-tiles.erb b/cookbooks/tile/templates/default/cleanup-tiles.erb index 8278545ae..34761ba85 100644 --- a/cookbooks/tile/templates/default/cleanup-tiles.erb +++ b/cookbooks/tile/templates/default/cleanup-tiles.erb @@ -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;