Skip to content

Commit

Permalink
Changed default max_runners to be 1 to be safe
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Jan 14, 2020
1 parent 1d75a93 commit 97b3799
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,14 @@
new lang_string('recentactivity', 'tool_crawler'),
get_string('recentactivitydesc', 'tool_crawler'), '1'));

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

$settings->add(new admin_setting_configtext('tool_crawler/maxtime',
new lang_string('maxtime', 'tool_crawler'),
Expand Down

0 comments on commit 97b3799

Please sign in to comment.