openfun / marsha

:clapper: An opensource LTI Learning Content Management System (LCMS)
MIT License
104 stars 24 forks source link

check_live_state pop from empty list #2564

Closed lunika closed 2 months ago

lunika commented 4 months ago

Bug Report

Problematic Behavior

The management command check_live_state has a recurring error, it tries to pop a value from an empty list. This list comes from cloudwatch service : https://github.com/openfun/marsha/blob/29e1f78ed6e288f7bba3c198bb7b7179e7af4fe0/src/backend/marsha/core/management/commands/check_live_state.py#L100

Expected behavior/code

This error seems to occur when a live has no activity anymore. We try to compare alerts set and the clear to determine if they are still active.

Steps to Reproduce

  1. Start a webinar
  2. Once started, stop all activity
  3. Run the management command check_live_state
  4. And then the bug happens!