# After /submit\_task, the /task\_list shows an empty list, and the task\_id on topic /fleet\_states do not match the one from /submit\_task (#305)

**URL:** <https://discourse.openrobotics.org/t/after-submit-task-the-task-list-shows-an-empty-list-and-the-task-id-on-topic-fleet-states-do-not-match-the-one-from-submit-task-305/44837>\
**Category:** Open-RMF General\
**Tags:** rmf-github-discuss\
**Created:** [January 30, 2023, 9:21pm UTC](https://discourse.openrobotics.org/t/after-submit-task-the-task-list-shows-an-empty-list-and-the-task-id-on-topic-fleet-states-do-not-match-the-one-from-submit-task-305/44837 "2023-01-30T21:21:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [January 30, 2023, 9:21pm UTC](https://discourse.openrobotics.org/t/after-submit-task-the-task-list-shows-an-empty-list-and-the-task-id-on-topic-fleet-states-do-not-match-the-one-from-submit-task-305/44837/1 "2023-01-30T21:21:50Z")

</div>

Posted by @rubenanapu:

Hi all,

when I submit a task using [RMF Panel](https://open-rmf.github.io/rmf-panel-js/) I get a task\_id, something like: **demos\_cff3ebac-9b42-48c5-a3e5-7cec237f693d**

But if I try to list the tasks by pressing the **REFRESH** button on the **Tasks** area of [RMF Panel](https://open-rmf.github.io/rmf-panel-js/), I get an empty list.

After enabling **JavaScript Developers Console** , I see it calls [http://localhost:8083/task\_list](http://localhost:8083/task_list), which always returns an empty list, even when I have a Delivery task running. If I send another task right away, it also still shows an empty list.

When I check the fleet\_states topic with **ros2 topic echo /fleet\_states** , I can see the robot, but the task\_id is always an integer, something like **task\_id: ‘155’**. I can never see the ID that appears when calling **/submit\_task**.

Does anybody know how to make the `/fleet_states` show the id returned by **/submit\_task**?

# What am I really trying to do?

What I’m really trying to do is to show the list of **finished** , **waiting** , and **running** tasks in a dashboard, but these IDs that don’t match and the empty list on **/task\_list** are not helping, and that is why I started this discussion.

Please feel free to correct me if I misunderstand something.

> **Chosen answer**
>
> Answer chosen by @rubenanapu at 2023-01-31T12:11:32Z.  
> Answered by @aaronchongth:
> 
> Hello @rubenanapu! Are you perhaps referring to the success snack bar that appears in the panel, saying something along the lines of `Request submitted successfully! Task ID: .....`?
> 
> Thanks for bringing this up, unfortunately `rmf-panel-js` is not actively being maintained, and has quite a number of legacy features and concepts, including the generation of such uuids. These uuids are created by the `dispatcher_client` from `rmf_demos_panel`, [https://github.com/open-rmf/rmf\_demos/blob/main/rmf\_demos\_panel/rmf\_demos\_panel/dispatcher\_client.py#L96](https://github.com/open-rmf/rmf_demos/blob/main/rmf_demos_panel/rmf_demos_panel/dispatcher_client.py#L96).
> 
> I would recommend switching over the our web dashboard, [GitHub - open-rmf/rmf-web](https://github.com/open-rmf/rmf-web), which we are actively developing, where the task IDs are accurately reflected (same as from `/fleet_states`), and the task statuses are up to date too.

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [January 31, 2023, 9:13am UTC](https://discourse.openrobotics.org/t/after-submit-task-the-task-list-shows-an-empty-list-and-the-task-id-on-topic-fleet-states-do-not-match-the-one-from-submit-task-305/44837/2 "2023-01-31T09:13:50Z")

</div>

Posted by @aaronchongth:

Hello @rubenanapu! Are you perhaps referring to the success snack bar that appears in the panel, saying something along the lines of `Request submitted successfully! Task ID: .....`?

Thanks for bringing this up, unfortunately `rmf-panel-js` is not actively being maintained, and has quite a number of legacy features and concepts, including the generation of such uuids. These uuids are created by the `dispatcher_client` from `rmf_demos_panel`, [https://github.com/open-rmf/rmf\_demos/blob/main/rmf\_demos\_panel/rmf\_demos\_panel/dispatcher\_client.py#L96](https://github.com/open-rmf/rmf_demos/blob/main/rmf_demos_panel/rmf_demos_panel/dispatcher_client.py#L96).

I would recommend switching over the our web dashboard, [GitHub - open-rmf/rmf-web](https://github.com/open-rmf/rmf-web), which we are actively developing, where the task IDs are accurately reflected (same as from `/fleet_states`), and the task statuses are up to date too.

* * *

**This is the chosen answer.**

---

<div class="post-metadata">

**Author:** ![Archive-o-matic](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/archive-o-matic/32/26074_2.png) [@Archive-o-matic](https://discourse.openrobotics.org/u/Archive-o-matic)\
**Post date:** [January 31, 2023, 12:11pm UTC](https://discourse.openrobotics.org/t/after-submit-task-the-task-list-shows-an-empty-list-and-the-task-id-on-topic-fleet-states-do-not-match-the-one-from-submit-task-305/44837/3 "2023-01-31T12:11:28Z")

</div>

Posted by @rubenanapu:

Hi @aaronchongth,

that is right. The **demos\_cff3ebac-9b42-48c5-a3e5-7cec237f693d** Task ID I was referring to is exactly the one that appears in the success snack bar.

Thank You very much for pointing me to Web Dashboard ([GitHub - open-rmf/rmf-web](https://github.com/open-rmf/rmf-web))

I’ll mark this discussion closed then. If necessary, I open it again.

Once again, thank you very much. May God bless you.
