From 0b76b22a2be65c2579a7eac92b56414f1c40a0b2 Mon Sep 17 00:00:00 2001 From: mmd-osm Date: Wed, 28 Dec 2022 16:16:49 +0100 Subject: [PATCH] update-wiki-pages: adding retry and timeout --- script/misc/update-wiki-pages | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5