Skip to content

Commit 97b3799

Browse files
committedJan 14, 2020
Changed default max_runners to be 1 to be safe
1 parent 1d75a93 commit 97b3799

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎settings.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,14 @@
146146
new lang_string('recentactivity', 'tool_crawler'),
147147
get_string('recentactivitydesc', 'tool_crawler'), '1'));
148148

149+
// The default moodle level of concurrency is 3 so if we spawned 10 crawler
150+
// tasks every minute then moodle may not ever be able to keep up and it will
151+
// block other tasks from being processed in a timely fashion.
152+
// So default to 1 to be effectively not parallel by default.
149153
$settings->add(new admin_setting_configtext('tool_crawler/max_workers',
150154
new lang_string('max_workers', 'tool_crawler'),
151155
new lang_string('max_workersdesc', 'tool_crawler'),
152-
'10' ));
156+
'1' ));
153157

154158
$settings->add(new admin_setting_configtext('tool_crawler/maxtime',
155159
new lang_string('maxtime', 'tool_crawler'),

0 commit comments

Comments
 (0)
Please sign in to comment.