Admin task views show "waiting for an eligible worker" for expired tasks
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 78/100
Research direction
Start with _awaiting_eligible_reason and the list and detail queries in server/orcaster_server/api/admin_ui.py, then check the expiry condition in server/orcaster_server/housekeeping.py. Trace how the task list and detail page render the waiting flag, and locate their tests. Done means expired tasks no longer show the flag in either view, future or unset expiries still do, tests cover both cases, and the Unreleased changelog includes an entry.
Written by the indexing model from the issue text.
Description
Problem
The admin task list and the task detail page show "waiting for an eligible worker" for an all_available task in dispatching whose epoch has no execution. The flag does not look at expires_at (server/orcaster_server/api/admin_ui.py:553, and _awaiting_eligible_reason at server/orcaster_server/api/admin_ui.py:3511).
Housekeeping skips tasks whose expires_at has passed (server/orcaster_server/housekeeping.py:319). So for an expired task the promised wait never ends.
Steps to reproduce
- Create an
all_availabletask with anexpires_atin the past or soon, while no eligible worker is online. - Wait until
expires_atpasses. - Open the admin task list and the task detail page.
- The row still shows "waiting for an eligible worker" (
server/orcaster_server/templates/_tasks_table.html:141).
Proposed change
Do not show the waiting flag when expires_at is set and in the past. Preferably show the task as expired instead, if the list already has a way to show that state. Apply the same rule to the list query and to the detail view (the detail query at server/orcaster_server/api/admin_ui.py:827 must then also return expires_at).
Acceptance criteria
- The list row and the detail page do not show the waiting flag for a task whose
expires_atis in the past. - Tasks without
expires_at, or with one in the future, show the flag as before. - The condition matches the one used by housekeeping.
- Tests cover an expired and a non-expired task in the list and in the detail view.
- CHANGELOG entry under Unreleased.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AInvirion/orcaster
-
enhancement P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
enhancement good first issue P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug P2 server
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
bug P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
enhancement P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
All issues in AInvirion/orcaster
Similar issues
-
[Resource]: SpaicelyOpenresource-submission validation-passed
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bvis/aegis-hass#725 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPossibly taken @NimaVaziri claimed this today. OpenPytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainers usually reply within 1 day