Skip to content

Commit

Permalink
Never cache a failed job (#1300)
Browse files Browse the repository at this point in the history
Caching failed jobs was wasteful and confusing.
  • Loading branch information
JakeSiFive authored Jun 16, 2023
1 parent 4da6ce8 commit 6a7c60b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions share/wake/lib/system/job.wake
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@ export def mkJobCacheRunner (wakeroot: String) ((Runner name score baseDoIt): Ru

True

# Caching a failed job is a waste of space, never do that
require True = status == 0
else Pass ""

job_cache_add jobCacheAddJson

Pass (RunnerOutput (map getPathName vis) outputs useage)
Expand Down

0 comments on commit 6a7c60b

Please sign in to comment.