We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
interval: 0
1 parent 1cb39fc commit 830020dCopy full SHA for 830020d
site/src/components/Resources/AgentMetadata.tsx
@@ -31,7 +31,10 @@ const MetadataItem: FC<{ item: WorkspaceAgentMetadata }> = ({ item }) => {
31
if (year <= 1970 || isNaN(year)) {
32
return "loading"
33
}
34
- if (item.result.age > staleThreshold) {
+ // 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) {
38
return "stale"
39
40
return "valid"
0 commit comments