]> git.openstreetmap.org Git - rails.git/blobdiff - script/misc/update-wiki-pages
update-wiki-pages: adding retry and timeout
[rails.git] / script / misc / update-wiki-pages
index 3f15c0df0a7f69991c17799d2b947a365c8d4b00..50f994c0755fd027bc239d0542fb834639227f8c 100755 (executable)
@@ -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);