fccn / richie-openedx-sync

Richie Open edx Synchronization
GNU Affero General Public License v3.0
0 stars 1 forks source link

Timeout sending data Open edX data to Richie #13

Closed igobranco closed 6 months ago

igobranco commented 6 months ago

Open edX celery task that synchronizes course information from LMS/Studio to Richie is timing out.

From Sentry it is timing out after 5 seconds. It should be more than enough to Richie update itself.

Changes that need to be made:

  1. This celery task shouldn't raise any error;
  2. Replace the log error with a log warning;
  3. Increase the timeout (from 5 to 20 seconds) and make it configurable;

Screen shot from Sentry with the error: Image

Error synchronizing course course-v1:INA+EIDCE+2024_T1 to richie site https://www.nau

message
Error synchronizing course course-v1:INA+EIDCE+2024_T1 to richie site https://www.nau.edu.pt/api/v1.0/course-runs-sync/

richie_openedx_sync.tasks
HTTPSConnectionPool(host='www.nau.edu.pt', port=443): Read timed out. (read timeout=5)

richie_openedx_sync.tasks.sync_course_run_information_to_richie

ReadTimeout

richie_openedx_sync.tasks.sync_course_run_information_to_richie

HTTPSConnectionPool(host='www.nau.edu.pt', port=443): Read timed out. (read timeout=5)
igobranco commented 6 months ago

The timeout is already configurable, like:

RICHIE_OPENEDX_SYNC_COURSE_HOOKS:
  - url: https://some.richie.education/api/v1.0/course-runs-sync/
    secret: my-secret
    timeout: 20
igobranco commented 6 months ago

We no longer receive those errors on Sentry!