When a fleet adapter restart is required during a task execution, the api-server will stop receiving task state updates for the ongoing task and the status will continue to remain underway or queued. This change hopes to make it clearer that something has interrupted the task and will never be completed/cancelled properly.
Shows outdated tasks (fleet adapter restarts, etc) as stale
Tooltip for explanation
Turning this feature on or off using build-time configuration, resources.dismissStaleTasks
Testing in sim
as sim time is always behind real time, turning this feature will make ongoing tasks always be stale
Here is how the rmf-web/packages/dashboard/src/assets/resources/main.json can look like
{
...,
"dismissStaleTasks": true,
...
}
## Self-checks
- [ ] I have prototyped this new feature (if necessary) on Figma
- [ ] I'm familiar with and follow this [Typescript guideline](https://basarat.gitbook.io/typescript/styleguide)
- [ ] I added unit-tests for new components
- [ ] I tried testing edge cases
- [ ] I tested the behavior of the components that interact with the backend, with an e2e test
What's new
When a fleet adapter restart is required during a task execution, the api-server will stop receiving task state updates for the ongoing task and the status will continue to remain
underway
orqueued
. This change hopes to make it clearer that something has interrupted the task and will never be completed/cancelled properly.stale
resources.dismissStaleTasks
Testing in sim
stale
rmf-web/packages/dashboard/src/assets/resources/main.json
can look like