Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit830020d

Browse files
authored
fix(site): don't mark metadata withinterval: 0 as stale (#8627)
1 parent1cb39fc commit830020d

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)

[8]ページ先頭

©2009-2025 Movatter.jp