equinor / flotilla

Flotilla is the main point of access for operators to interact with multiple robots in a facility.
Eclipse Public License 2.0
17 stars 36 forks source link

Mission queue should be sorted by closest deadline #1228

Open Eddasol opened 10 months ago

Eddasol commented 10 months ago

Describe the improvement you would like to see Missions on a deck is sorted by deadline and when scheduling all missions on a deck the queue should get the same order such that missions with a short deadline ends up first in the queue.

Missions on the deck, ordered by deadline image

Mission Queue after queuing all missions image

How will this change existing functionality? Missions with short deadline will run first

How will this improvement affect the current Threat Model? N/A

andchiind commented 10 months ago

This could be solved by having global ordering, where each mission is assigned a unique incrementing number. This way we could allow the user to reorder the queue in any way they want, while also having it be predictable for a user. This would also prevent starvation where missions without a deadline are always put to the end of the queue.

andchiind commented 9 months ago

It is hard to actually achieve the same ordering on the frontend and backend unless we purposefully slow down the frontend. This would also still not guarantee the same ordering. See the above comment for a potential fix.

andchiind commented 6 months ago

Alternatively we'll need to ensure we use the same sorting of mission runs on the frontend and backend in respect to deadlines, but if two missions have the same timings, or if neither has an inspection frequency, then there would still be inconsistencies.

aeshub commented 4 months ago

This issue has automatically been marked as stale as there has been no activity for 60 days.

aeshub commented 1 week ago

This issue has automatically been marked as stale as there has been no activity for 60 days.