Compute worker - Improve status update and logs#2223
Open
Compute worker - Improve status update and logs#2223
Conversation
Member
Author
Member
Author
|
CircleCI: =========================== short test summary info ============================
FAILED src/apps/competitions/tests/test_submissions.py::MultipleTasksPerPhaseTests::test_children_always_created_in_the_same_order - AssertionError: assert 0 == 2
FAILED src/apps/competitions/tests/test_submissions.py::MultipleTasksPerPhaseTests::test_making_submission_creates_parent_sub_and_additional_sub_per_task - AssertionError: assert 0 == 2
FAILED src/apps/competitions/tests/test_submissions.py::MultipleTasksPerPhaseTests::test_making_submission_to_phase_with_one_task_does_not_create_parents_or_children - AssertionError: assert 0 == 1
====== 3 failed, 229 passed, 2 skipped, 106 warnings in 231.68s (0:03:51) ======But locally it seems to work fine (even multitask) |
Member
Author
|
@ObadaS @ihsaan-ullah It is ready to review |
This was referenced Mar 6, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
_update_statusrobust to failuresFailedfor any exception, avoiding getting stuck toRunningpush_logsmethodshow_progressclarity and avoid overloggingtasks.py: queue the compute worker task only after commit to avoid fetching too soon and raising a 404 errorGenerally, this change should fix the "stuck in running" bug, and allow more logs to reach the platform's front-end. Possibly fix also the orphan containers issue.
Issues this PR resolves
A checklist for hand testing
Checklist