You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We just stumbled upon an issue while trying out one of your latest plugin versions that ships with a 2000 millisecond apitimeout by default.
I understand that you want to keep this to a minimum for regular requests that occur during page loads in order to not keep the users waiting.
However, this broke our video upload cronjob, because our opencast test instance takes way more than 2 seconds to respond to that particular POST request.
Since the video upload itself was successful, the new video was added into the opencast series while Moodle still thought that the upload did not succeed. This leads to moodle uploading the same video over and over again and again until an admin breaks this cycle.
It took us a bunch of time debugging this, that's why I am sharing this here.
Please consider increasing the default apitimeout to 30 seconds or consider using a different timeout for the video upload cronjob.
Also, perhaps it is a good idea to improve logging errors that occur while uploading a video, so that we don't have to add our own print_r() statements in order to figure out the actual cause for a failed upload. :-)
The text was updated successfully, but these errors were encountered:
I would prefer to have an additional timeout setting for video upload requests within the cronjob. We had to increase the timeout to values even greater than 30 seconds. Such long timeouts are of course not necessary for, e.g., requests just fetching metadata from Opencast.
I decided to implement an extra setting in block_opencast for a dedicated upload timeout. I did this because the upload functionality is implemented there and not in tool_opencast. #54 only creates the conditions for the feature in block_opencast.
We just stumbled upon an issue while trying out one of your latest plugin versions that ships with a 2000 millisecond apitimeout by default.
I understand that you want to keep this to a minimum for regular requests that occur during page loads in order to not keep the users waiting.
However, this broke our video upload cronjob, because our opencast test instance takes way more than 2 seconds to respond to that particular POST request.
Since the video upload itself was successful, the new video was added into the opencast series while Moodle still thought that the upload did not succeed. This leads to moodle uploading the same video over and over again and again until an admin breaks this cycle.
It took us a bunch of time debugging this, that's why I am sharing this here.
Please consider increasing the default apitimeout to 30 seconds or consider using a different timeout for the video upload cronjob.
Also, perhaps it is a good idea to improve logging errors that occur while uploading a video, so that we don't have to add our own
print_r()
statements in order to figure out the actual cause for a failed upload. :-)The text was updated successfully, but these errors were encountered: