Skip to content

feat(rmf_demos_tasks): add configurable timeout and non-zero exit codes - #371

Open
muskan-creates352 wants to merge 1 commit into
open-rmf:mainfrom
muskan-creates352:feat/tasks-timeout-exit-codes
Open

muskan-creates352 wants to merge 1 commit into
open-rmf:mainfrom
muskan-creates352:feat/tasks-timeout-exit-codes

Conversation

@muskan-creates352

@muskan-creates352 muskan-creates352 commented Nov 6, 2026 •

Copy link
Copy Markdown

Feature / Enhancement

Linked Issue

Fixes #370

Description of changes

Currently, task dispatch and request scripts in rmf_demos_tasks have a hardcoded 5.0s timeout and exit with return code 0 even when no response is received from the dispatcher node.

This PR implements:

  • Adds a configurable --timeout CLI argument (default: 5.0 seconds) to all task dispatch and request CLI tools in rmf_demos_tasks.
  • Exits with a non-zero exit code (sys.exit(1)) on timeout or failure, ensuring automated test harnesses, shell scripts, and CI workflows can properly detect dispatch failures.
  • Maintains 100% backwards compatibility by keeping default timeout at 5.0 seconds.

Testing

  • Verified that --help displays --timeout across all updated scripts.
  • Verified PEP 8 / pycodestyle compliance (pycodestyle rmf_demos_tasks passes with 0 errors).

GenAI Use

We follow OSRA's policy on GenAI tools

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

Tool used: Google Antigravity

Add an optional --timeout CLI argument (default: 5.0s) to all task dispatch and request scripts in rmf_demos_tasks. Also ensure scripts exit with non-zero exit code (sys.exit(1)) when timing out or failing, preventing silent failures in CI/automation workflows.

Fixes open-rmf#370

Signed-off-by: Muskan Kumari <er.muskan09@gmail.com>
@mxgrey mxgrey added this to PMC Board Nov 6, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in PMC Board Nov 6, 2026

@aaronchongth aaronchongth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before the team starts reviewing, please fill up the declaration of whether generative AI was used

@muskan-creates352

Copy link
Copy Markdown
Author

Updated the description with the GenAI declaration! @aaronchongth

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add configurable timeout and non-zero exit codes to rmf_demos_tasks CLI scripts

2 participants