Skip to content

Fix task status reporting when phases are pending - #149

Open
aadhi5h wants to merge 1 commit into
open-rmf:mainfrom
aadhi5h:fix/status-overview-pending-phases
Open

aadhi5h wants to merge 1 commit into
open-rmf:mainfrom
aadhi5h:fix/status-overview-pending-phases

Conversation

@aadhi5h

@aadhi5h aadhi5h commented Oct 2, 2026

Copy link
Copy Markdown

Bug fix

Fixed bug

Fixes #147.

rmf_task_sequence::Task::Active::status_overview() could report a task as Completed when the current phase had completed but subsequent phases were still pending.

This could cause the task status to indicate completion even though the task still had phases that had not been activated or completed.

Fix applied

Updated Task::Active::status_overview() to check for pending phases when an active phase exists.

If there are pending phases, the task now reports Event::Status::Underway instead of returning the status of the active phase's final event.

Added a regression test that checks the task status during the phase-finished callback, when the completed phase has been recorded but the next pending phase has not yet been activated.

The regression test fails with the original implementation and passes with the fix.

GenAI Use

  • I used a GenAI tool in this PR.
  • I did not use GenAI

Generated-by: Google Gemini

@mxgrey mxgrey added this to PMC Board Oct 2, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in PMC Board Oct 2, 2026
Signed-off-by: Aadhish <aadhi5h.20.09.2006@gmail.com>
@aadhi5h
aadhi5h force-pushed the fix/status-overview-pending-phases branch from a35876f to 937c1a1 Compare October 2, 2026 06:38
@mxgrey
mxgrey self-requested a review October 6, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

status_overview() reports a task 'completed' from the active phase while later phases are still pending

2 participants