diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-01-16 12:06:14 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-01-19 11:26:54 +0100 |
| commit | 7374c4e509b18f2c3fbcd98d7228c4f940a6d00b (patch) | |
| tree | 96d23d59e688ddcaa69e6eea5e45c7f767efce91 | |
| parent | 2cf22faa5bfe68744016881043351d75c8269139 (diff) | |
dashboard: adjust running jobs criteria
Now that we can run many jobs in parallel, the LastStarted field no
longer provides sufficient information to determine the currently
running jobs. Use IsRunning instead.
| -rw-r--r-- | dashboard/app/main.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 1dab67cf5..34a2ddf93 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -1478,9 +1478,7 @@ func loadPendingJobs(c context.Context) ([]*uiJob, error) { func loadRunningJobs(c context.Context) ([]*uiJob, error) { var jobs []*Job keys, err := db.NewQuery("Job"). - Filter("Finished=", time.Time{}). - Filter("Started>", time.Time{}). - Order("-Started"). + Filter("IsRunning=", true). Limit(50). GetAll(c, &jobs) if err != nil { |
