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

feat(ui): resume on selected node. Fixes #5763 #6885

Merged
merged 3 commits into from
Oct 8, 2021

Conversation

tczhao
Copy link
Member

@tczhao tczhao commented Oct 7, 2021

Fixes #5763 #6666

Untitled_.Oct.8.2021.11_12.AM.mp4

Tips:

  • Maybe add you organization to USERS.md.
  • Your PR needs to pass the required checks before it can be approved. If the check is not required (e.g. E2E tests) it does not need to pass
  • Sign-off your commits to pass the DCO check: git commit --signoff.
  • Run make pre-commit -B to fix codegen or lint problems.
  • Say how how you tested your changes. If you changed the UI, attach screenshots.
  • If changes were requested, and you've made them, then dismis the review to get it looked at again.
  • You can ask for help!

@codecov
Copy link

codecov bot commented Oct 7, 2021

Codecov Report

Merging #6885 (93d143f) into master (689ad68) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6885      +/-   ##
==========================================
- Coverage   48.55%   48.50%   -0.06%     
==========================================
  Files         265      265              
  Lines       19220    19259      +39     
==========================================
+ Hits         9332     9341       +9     
- Misses       8839     8870      +31     
+ Partials     1049     1048       -1     
Impacted Files Coverage Δ
workflow/util/util.go 45.78% <100.00%> (+1.00%) ⬆️
cmd/argoexec/commands/emissary.go 50.35% <0.00%> (-1.44%) ⬇️
persist/sqldb/migrate.go 0.00% <0.00%> (ø)
pkg/apiclient/http1-client.go 0.00% <0.00%> (ø)
persist/sqldb/workflow_archive.go 0.00% <0.00%> (ø)
pkg/apiclient/argo-kube-client.go 0.00% <0.00%> (ø)
pkg/apiclient/argo-server-client.go 0.00% <0.00%> (ø)
pkg/apiclient/offline-workflow-service-client.go 0.00% <0.00%> (ø)
...ient/argo-kube-workflow-template-service-client.go 0.00% <0.00%> (ø)
.../error-translating-cron-workflow-service-client.go 0.00% <0.00%> (ø)
... and 3 more

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 689ad68...93d143f. Read the comment docs.

@tczhao tczhao marked this pull request as draft October 7, 2021 14:30
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
@tczhao tczhao marked this pull request as ready for review October 7, 2021 22:19
@tczhao tczhao requested a review from alexec October 7, 2021 22:31
@alexec
Copy link
Contributor

alexec commented Oct 7, 2021

This seems counter intuitive to me. How about we add a "Resume" button on the sliding panel rather than use the one it toolbar?

Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
@tczhao
Copy link
Member Author

tczhao commented Oct 8, 2021

updated ui with more intuitive flow, added test

@alexec alexec merged commit c5b1533 into argoproj:master Oct 8, 2021
@daniel-winter
Copy link

@tczhao Thank you for the implementation. Is there a documentation how to use the independent resuming of suspension nodes? Thank in advance.

@tczhao
Copy link
Member Author

tczhao commented Oct 14, 2021

Hi @daniel-winter,
Not sure what exactly what you are referring to as documentation:
I'm thinking the resuming can be done in UI or cli.

The UI should be quite straightforward
For CLI, you can use --node-field-selector options to resume selected nodes
https://argoproj.github.io/argo-workflows/cli/argo_resume/

@daniel-winter
Copy link

daniel-winter commented Oct 14, 2021

@tczhao Sorry, for confusing you. I meant a code example, e.g.

templates:
    - name: build-and-test
      dag:
              tasks:
                - name: approve
                  template: approve
                - name: approve1
                  template: approve1
                - name: wait-for-approve
                   dependencies: [approve]
                   template: wait-for-approve
                - name: wait-for-approve1
                   dependencies: [approve1]
                   template: wait-for-approve1
    - name: approve
      suspend: {}
    - name: approve1
      suspend: {}
     ....

And in the UI it's then possible to resume it. I am not completely sure how to use it. As you can see in the screenshot, the resume button for this node is missing in opening sidebar:

Bildschirmfoto 2021-10-14 um 11 53 12

This was referenced Oct 15, 2021
@tiwarisanjay
Copy link
Contributor

@alexec @tczhao Is it released ? Eagerly waiting for this one to test.

@alexec
Copy link
Contributor

alexec commented Oct 20, 2021

v3.3/latest

kriti-sc pushed a commit to kriti-sc/argo-workflows that referenced this pull request Oct 24, 2021
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Signed-off-by: kriti-sc <kathuriakriti1@gmail.com>
@tiwarisanjay
Copy link
Contributor

v3.3/latest

Hi @alexec When we can expect v3.3. Just saw 3.2.3 got released.

@daniel-winter
Copy link

daniel-winter commented Nov 8, 2021

Hi @alexec Any news about that feature? Can't see any open PR where the feature is included? Thanks in advance

@tiwarisanjay
Copy link
Contributor

@alexec When we can expect this new feature?

Joibel added a commit to pipekit/argo-workflows that referenced this pull request Aug 13, 2024
This field was added in argoproj#6885 but is not in the documentation

Signed-off-by: Alan Clucas <alan@clucas.org>
Joibel added a commit to pipekit/argo-workflows that referenced this pull request Aug 14, 2024
This field was added in argoproj#6885 but is not in the documentation

Signed-off-by: Alan Clucas <alan@clucas.org>
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.

Can the resume function only target a node,not target a workflow
4 participants