COURSE_ENROLLMENT_CREATED signal fired twice for a single enrollment

Đang mở
#39,002 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Tái hiện việc ghi danh thông qua UI hoặc enrollment API, đồng thời ghi log event_metadata.id cho COURSE_ENROLLMENT_CREATED. Truy vết các đường phát tín hiệu trong edx-platform và xác nhận hoàn tất khi một hành động ghi danh tạo ra chính xác một sự kiện với đúng một id riêng biệt.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Description

On a local tutor setup, enrolling one user into one course results in COURSE_ENROLLMENT_CREATED being emitted twice, each with a distinct event_metadata.id. This was observed via a downstream receiver (webhook forwarder) that logged two separate deliveries for what should be a single enrollment action:

event_type event_id timestamp
org.openedx.learning.course.enrollment.created.v1 b9fed4e4-9bb3-11f1-b47b-8665a19c74ef Aug. 19, 2026, 9:52 a.m.
org.openedx.learning.course.enrollment.created.v1 b9de5ffc-9bb3-11f1-91fa-8665a19c74ef Aug. 19, 2026, 9:52 a.m.

Since the two events have different event_metadata.id values, this isn't a case of a receiver being connected twice (that would redeliver the same event id) — the event is being emitted twice by edx-platform itself for the same enrollment action.

Steps to reproduce

  1. On a dev setup, enroll a single user in a single course (via UI or enrollment API).
  2. Have a receiver connected to COURSE_ENROLLMENT_CREATED (e.g. logging the metadata.id of each call).
  3. Observe two invocations with different event_metadata.id for the same enrollment.

Expected behavior

One enrollment action should emit exactly one COURSE_ENROLLMENT_CREATED event.

Actual behavior

Two events are emitted with distinct ids, seconds apart, for the same user/course enrollment.

Environment

  • tutor 22.0.0 openedx verawood.1
  • Open edX Events: openedx_events.learning.signals.COURSE_ENROLLMENT_CREATED
Ngôn ngữ chính
Python
Star
8.2k
Fork
4.4k
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
40

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openedx/openedx-platform

Tất cả issue của openedx/openedx-platform

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.