From: mmd-osm Date: Wed, 28 Dec 2022 15:16:49 +0000 (+0100) Subject: update-wiki-pages: adding retry and timeout X-Git-Tag: live~1345^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0b76b22a2be65c2579a7eac92b56414f1c40a0b2?ds=sidebyside update-wiki-pages: adding retry and timeout --- diff --git a/script/misc/update-wiki-pages b/script/misc/update-wiki-pages index 3f15c0df0..50f994c07 100755 --- a/script/misc/update-wiki-pages +++ b/script/misc/update-wiki-pages @@ -42,6 +42,8 @@ help() unless -f $out_file; my $mw = MediaWiki::API->new(); ok($mw, "Got a MediaWiki API"); $mw->{config}->{api_url} = 'https://wiki.openstreetmap.org/w/api.php'; +$mw->{config}->{retries} = 5; +$mw->{config}->{retry_delay} = 30; # All our goodies my (%feature, %count);