turnitin / moodle-plagiarism_turnitin

Turnitin Plagiarism plugin for Moodle
http://www.turnitin.com
GNU General Public License v3.0
49 stars 70 forks source link

When turnitin submissions are down, it causes moodle session locks when users can't submit #503

Open kristian-94 opened 4 years ago

kristian-94 commented 4 years ago

On Apr 27, 2020 there was an Issue with access and submission where users were unable to submit https://turnitin.statuspage.io/ .

This caused many session locks for users in moodle becuase they were waiting for a response from turnitin:

PHP message: Cannot obtain session lock within 120. It is likely another page has a long session lock, or the session lock was never released.#012 PHP message: Default exception handler: error/Unable to obtain session lock Debug: #012 Error code: Unable to obtain session lock request: "POST /plagiarism/turnitin/ajax.php HTTP/1.1

In the /plagiarism/turnitin/ajax.php page we make a syncronous call to turnitin that expects a response and the moodle session is locked while we wait for this.

This code should be changed to timeout quicker, use an async task, or enable a read only session https://tracker.moodle.org/browse/MDL-58018 so that the session doesn't need to be locked waiting for a response from turnitin.

carl-hostrander commented 4 months ago

Thank you for reporting this. Because the latest version of the plagiarism plugin is supported for versions of Moodle 4.1 and higher, I am closing this ticket. However, if you find this issue is occurring with the latest version of the plugin in any of the supported Moodle versions, please create a new ticket and we will address it.

aspark21 commented 4 months ago

Yes this is still relevant in 4.3+ @carl-hostrander