Skip to content

Commit 830020d

Browse files
authored
fix(site): don't mark metadata with interval: 0 as stale (#8627)
1 parent 1cb39fc commit 830020d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/src/components/Resources/AgentMetadata.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ const MetadataItem: FC<{ item: WorkspaceAgentMetadata }> = ({ item }) => {
3131
if (year <= 1970 || isNaN(year)) {
3232
return "loading"
3333
}
34-
if (item.result.age > staleThreshold) {
34+
// There is a special circumstance for metadata with `interval: 0`. It is
35+
// expected that they run once and never again, so never display them as
36+
// stale.
37+
if (item.result.age > staleThreshold && item.description.interval > 0) {
3538
return "stale"
3639
}
3740
return "valid"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy