Skip to content

Commit b7beec6

Browse files
authored
allow viewing logs for one-off jobs (#189)
1 parent 38cd869 commit b7beec6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pkg/tui/views/util.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ func matchesCronJobId(id string) bool {
1818
return strings.HasPrefix(id, "crn-") && len(id) == 24
1919
}
2020

21+
func matchesJobId(id string) bool {
22+
return strings.HasPrefix(id, "job-") && len(id) == 24
23+
}
24+
2125
func matchesResourceId(id string) bool {
22-
return matchesServiceId(id) || matchesPostgresId(id) || matchesKeyValueId(id) || matchesCronJobId(id)
26+
return matchesServiceId(id) || matchesPostgresId(id) || matchesKeyValueId(id) || matchesCronJobId(id) || matchesJobId(id)
2327
}

0 commit comments

Comments
 (0)