- 
                Notifications
    You must be signed in to change notification settings 
- Fork 147
Open
Labels
Issue type - enhancement requestNew feature being requested outside of original scope.New feature being requested outside of original scope.Plugin - local_o365Status - PR ready / pending releaseDev is done and PR ready. Will be included in the next release.Dev is done and PR ready. Will be included in the next release.
Milestone
Description
Hi,
We're encountering a minor issue with the \local_o365\task\coursesync task. Our task_scheduled_max_runtime is configured for 30 minutes, but the script execution time ranges from 20 minutes to over 30 minutes. As a result, Moodle often terminates the script prematurely.
Here are the versions we're currently using:
- Moodle: 4.3.10
- moodle-local_o365: 4.3.6
- Php 8.1
After investigating, we've found that the delay occurs when the script is fetching groups from the Graph API client:
The while loop in this method is taking too long to complete.
This is the exact line of code where the script is looping and ending prematurely:
local/o365/classes/rest/unified.php:199
Metadata
Metadata
Assignees
Labels
Issue type - enhancement requestNew feature being requested outside of original scope.New feature being requested outside of original scope.Plugin - local_o365Status - PR ready / pending releaseDev is done and PR ready. Will be included in the next release.Dev is done and PR ready. Will be included in the next release.