Skip to content

Conversation

@tetron
Copy link
Member

@tetron tetron commented Feb 28, 2023

The executor interface is instanced rather than a constructor interface, and the most recent results are saved on the object as final_output and final_status. We should be able to invoke the executor more than once, however the current executor will not overwrite previously recorded results with new results. This change clears final_output and final_status each time execute() is called so that new results can be recorded.

@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Merging #1813 (f48e4a8) into main (bdf84d1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1813   +/-   ##
=======================================
  Coverage   83.62%   83.62%           
=======================================
  Files          44       44           
  Lines        8115     8117    +2     
  Branches     2219     2219           
=======================================
+ Hits         6786     6788    +2     
  Misses        849      849           
  Partials      480      480           
Impacted Files Coverage Δ
cwltool/executors.py 85.58% <100.00%> (+0.12%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@tetron tetron enabled auto-merge (squash) February 28, 2023 18:41
tetron added 2 commits March 7, 2023 14:23
The executor interface is instanced rather than a constructor
interface, and the most recent results are saved on the object as
final_output and final_status.  We should be able to invoke the
executor more than once, however the current executor will not
overwrite previously recorded results with new results.  This change
clears final_output and final_status each time execute() is called so
that new results can be recorded.
@mr-c mr-c force-pushed the executor-reset-result branch from c4af950 to f48e4a8 Compare March 7, 2023 13:23
@mr-c mr-c disabled auto-merge March 7, 2023 13:23
@mr-c mr-c enabled auto-merge (squash) March 7, 2023 13:24
@mr-c mr-c merged commit 5f3b605 into main Mar 7, 2023
@mr-c mr-c deleted the executor-reset-result branch March 7, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants