Skip to content

Commit 96b8596

Browse files
committed
Only show latest version for development environments
1 parent ceb9bf2 commit 96b8596

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/webapp/app/presenters/v3/TestTaskPresenter.server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ export class TestTaskPresenter {
147147
orderBy: {
148148
createdAt: "desc",
149149
},
150-
take: 20,
150+
// only the latest version has active workers in development,
151+
// so we hide the older versions to avoid runs getting stuck
152+
take: environment.type === "DEVELOPMENT" ? 1 : 20,
151153
})
152154
).map((v) => v.version);
153155

0 commit comments

Comments
 (0)