Improve job-queue query to make sure jobs across all states show up

This commit is contained in:
Eike Kettner
2020-08-13 01:01:02 +02:00
parent 41ea071555
commit 69674eb485
3 changed files with 29 additions and 10 deletions

View File

@ -48,7 +48,9 @@ object OJob {
def queueState(collective: Ident, maxResults: Int): F[CollectiveQueueState] =
store
.transact(QJob.queueStateSnapshot(collective).take(maxResults.toLong))
.transact(
QJob.queueStateSnapshot(collective, maxResults.toLong)
)
.map(t => JobDetail(t._1, t._2))
.compile
.toVector