Skip to content

Conversation

@ormsbee
Copy link
Contributor

@ormsbee ormsbee commented Dec 11, 2025

This is a backport of #2747

When uploading a library archive file during the creation of a new
library, the code prior to this commit did not properly handle the "In
Progress" state, which is when the celery task doing the archive
processing is actively running. Note that this is distinct from the
"Pending" state, which is when the task is waiting in the queue to be
run (which in practice should almost never happen unless there is an
operational issue).

Since celery tasks run in-process during local development, the task
was always finished by the time that the browser made a call to check
on the status. The problem only happened on slower sandboxes, where
processing truly runs asynchronously and might take a few seconds.
Because this case wasn't handled, the frontend would never poll for
updates either, so the upload was basically lost as far as the user
was concerned.
@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release/ulmo@4a1d0a2). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             release/ulmo    #2750   +/-   ##
===============================================
  Coverage                ?   94.80%           
===============================================
  Files                   ?     1230           
  Lines                   ?    27567           
  Branches                ?     6239           
===============================================
  Hits                    ?    26136           
  Misses                  ?     1360           
  Partials                ?       71           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ormsbee ormsbee merged commit 18e51db into openedx:release/ulmo Dec 13, 2025
7 checks passed
@ormsbee ormsbee deleted the backport-upload-fix branch December 13, 2025 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants