Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/Terrabuild/Core/Build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,6 @@ let run (options: ConfigOptions.Options) (cache: Cache.ICache) (api: Contracts.I
Log.Debug("{NodeId} must rebuild because force requested", node.Id)
TaskRequest.Build, buildNode()

elif maxCompletionChildren = DateTime.MaxValue then
Log.Debug("{NodeId} must rebuild because child is rebuilding", node.Id)
TaskRequest.Build, buildNode()

elif node.Cache <> Terrabuild.Extensibility.Cacheability.Never then
let cacheEntryId = GraphDef.buildCacheKey node
match cache.TryGetSummaryOnly allowRemoteCache cacheEntryId with
Expand All @@ -276,6 +272,11 @@ let run (options: ConfigOptions.Options) (cache: Cache.ICache) (api: Contracts.I
Log.Debug("{NodeId} must rebuild because node is failed and retry requested", node.Id)
TaskRequest.Build, buildNode()

// task is older than children
elif summary.EndedAt <= maxCompletionChildren then
Log.Debug("{NodeId} must rebuild because child is rebuilding", node.Id)
TaskRequest.Build, buildNode()

// task is cached
else
Log.Debug("{NodeId} is marked as used", node.Id)
Expand Down