Skip to content

Commit

Permalink
stdlib: Fix call timing for FnOutputs (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
V-FEXrt authored Sep 27, 2024
1 parent 0a81dc4 commit 1a21423
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions share/wake/lib/system/runner.wake
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 1a21423

Please sign in to comment.