gaia-app/gaia

๐Ÿ› : pending jobs shows last in job list

juwit opened this issue ยท 1 comments

juwit commented

Describe the bug
When starting a new job, when the runner is down, the job stays in PENDING state.
On the job list, it appears with the id '1', as the last element of the list.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a stack page
  2. Shut down the runner
  3. Click on Run
  4. Go back to stack page
  5. See wrong order

Expected behavior
Job should appear as the first element of the list.

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu Linux 20.10
  • Browser : Firefox 84
  • Version: Gaia 2.2.0-SNAPSHOT

Additional context
Add any other context about the problem here.

juwit commented

Jobs are ordered by start_date.
As "Pending" jobs do not have such a date, they appear last.