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: Maybe fix watch. Fixes #2678 #2719

Merged
merged 5 commits into from
Apr 16, 2020
Merged

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Apr 16, 2020

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed the CLA.
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

@alexec alexec marked this pull request as ready for review April 16, 2020 18:13
@alexec alexec linked an issue Apr 16, 2020 that may be closed by this pull request
4 tasks
func (w watchIntermediary) Recv() (*workflowpkg.WorkflowWatchEvent, error) {
select {
case e := <-w.error:
return nil, e
default:
return <-w.events, nil
case event := <-w.events:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps take a look at the the open bool? Perhaps the watch is getting closed

Suggested change
case event := <-w.events:
case event, open := <-w.events:

@sonarcloud
Copy link

sonarcloud bot commented Apr 16, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@alexec alexec merged commit e7c67de into argoproj:master Apr 16, 2020
@alexec alexec deleted the fix-2678-v2 branch April 16, 2020 22:53
alexec added a commit that referenced this pull request Apr 16, 2020
@simster7
Copy link
Member

Back-ported to 2.7

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.

argo watch does not update/refresh screen
2 participants