From 2c64606a278e33348f31eaad7c8569be1afe475f Mon Sep 17 00:00:00 2001 From: Ashley Coleman Date: Fri, 27 Sep 2024 12:35:50 -0700 Subject: [PATCH] stdlib: Fix call timing for FnOutputs --- share/wake/lib/system/runner.wake | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/share/wake/lib/system/runner.wake b/share/wake/lib/system/runner.wake index 6bd5da0da..611fa9b1e 100644 --- a/share/wake/lib/system/runner.wake +++ b/share/wake/lib/system/runner.wake @@ -129,12 +129,15 @@ export def localRunner: Runner = | map getPathName | fnInputs + # Wait for the job to complete before calling fnOutputs + require Pass reality = job.getJobReality + # Caller needs to fill this in from nothing def cleanable = Nil def fileOutputs = fnOutputs cleanable - job.getJobReality - |< RunnerOutput fileInputs fileOutputs cleanable + RunnerOutput fileInputs fileOutputs cleanable reality + | Pass makeRunner "local" run @@ -150,12 +153,15 @@ export def virtualRunner: Runner = | map getPathName | fnInputs + # Wait for the job to complete before calling fnOutputs + require Pass reality = job.getJobReality + # Caller needs to fill this in from nothing def cleanable = Nil def fileOutputs = fnOutputs cleanable - job.getJobReality - |< RunnerOutput fileInputs fileOutputs cleanable + RunnerOutput fileInputs fileOutputs cleanable reality + | Pass makeRunner "virtual" run