Finishing request task did not get queued when the task was requested using rmf_demos_tasks script (#201)

Posted by @cwrx777:

Hi,
I have configured my fleet adapter to perform ‘charge’.
When a loop task was requested via rmf panel, I could see that there was a Charge task appended after the loop (patrol) task.

{
    "category": "patrol",
    "description": {
        "places": [
            "L1_lift_entry",
            "L1_pos_A_entry"
        ],
        "rounds": 2
    },
    "labels": [
        "rmf_demos.simple_api_server"
    ],
    "priority": {
        "type": "binary",
        "value": 0
    },
    "unix_millis_earliest_start_time": 0
}

Then I used rmf_demo_tasks dispatch_patrol script to perform the same activities, however there was no Charge task appended.

{
    "unix_millis_earliest_start_time": 1661422320050,
    "category": "patrol",
    "description": {
      "places": [
        "L1_pos_A_entry",
        "L1_lift_entry"
      ],
      "rounds": 2
    }
}

How does finishing request task get appended?