update-wiki-pages: adding retry and timeout

This commit is contained in:
mmd-osm 2022-12-28 16:16:49 +01:00
parent 88b4555472
commit 0b76b22a2b

View file

@ -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);