Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Only save memoization cache when node succeeded #5711

Merged
merged 1 commit into from
Apr 19, 2021
Merged

fix: Only save memoization cache when node succeeded #5711

merged 1 commit into from
Apr 19, 2021

Conversation

terrytangyuan
Copy link
Member

I am not sure if this is the intended behavior but currently cache is saved regardless of node's status, which is not useful and counter-intuitive to our users.

For example, a failed node may have no output like {"nodeID":"memoized-simple-workflow-fzvkz","outputs":null,"creationTimestamp":"2021-04-19T13:17:28Z"} and then if a new template retrieves the cache, it will become successful and subsequent steps would fail due to the lack of outputs from the previous step.

Let me know if this currently behavior is indeed desired. Then we probably need to introduce a toggle for this. We have no use case to save cache for unsuccessful nodes.

Signed-off-by: terrytangyuan [email protected]

Checklist:

@codecov
Copy link

codecov bot commented Apr 19, 2021

Codecov Report

Merging #5711 (54571fa) into master (91c08cd) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5711      +/-   ##
==========================================
- Coverage   46.91%   46.90%   -0.01%     
==========================================
  Files         244      244              
  Lines       15209    15210       +1     
==========================================
- Hits         7135     7134       -1     
+ Misses       7169     7168       -1     
- Partials      905      908       +3     
Impacted Files Coverage Δ
workflow/controller/operator.go 70.85% <50.00%> (-0.21%) ⬇️
cmd/argo/commands/get.go 56.95% <0.00%> (+0.64%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 91c08cd...54571fa. Read the comment docs.

@terrytangyuan
Copy link
Member Author

Seeing # Wait for workflow controller until lsof -i :9090 > /dev/null ; do sleep 10s ; done Error: The action has timed out.

I think #5696 should fix/relieve this. Am I right? @alexec

@simster7 simster7 merged commit dba2c04 into argoproj:master Apr 19, 2021
@terrytangyuan terrytangyuan deleted the memoize-only-success branch April 19, 2021 19:03
@simster7 simster7 mentioned this pull request Apr 19, 2021
50 tasks
simster7 pushed a commit that referenced this pull request Apr 19, 2021
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.

None yet

2 participants