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
10 changes: 9 additions & 1 deletion src/Terrabuild/Core/Build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,15 @@ let run (options: ConfigOptions.Options) (cache: Cache.ICache) (api: Contracts.I
hub.GetSignal<DateTime> depId)
|> List.ofSeq

hub.Subscribe targetNode.Id schedDependencies (fun () ->
let subscribe =
match targetNode.Action with
| GraphDef.NodeAction.BatchBuild -> hub.Subscribe
| GraphDef.NodeAction.Build -> hub.Subscribe
| GraphDef.NodeAction.Restore -> hub.SubscribeBackground
| GraphDef.NodeAction.Summary -> hub.SubscribeBackground
| GraphDef.NodeAction.Ignore -> hub.SubscribeBackground

subscribe targetNode.Id schedDependencies (fun () ->
let batchSchedule =
[ match cluster with
| Some cluster ->
Expand Down