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

command: show periodic messages about continued ops #6163

Merged
merged 2 commits into from
Apr 13, 2016
Merged

Conversation

mitchellh
Copy link
Contributor

Dup of #6162 but on top of master instead.

// Grab the operation
h.l.Lock()
state, ok := h.resources[id]
h.l.Unlock()
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering if there is a tiny race condition here that would cause Still ... to print after the complete message.

Should this function hold the lock until after it prints?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I thought of that. Yeah, let's do that. I'll defer the lock.

@mitchellh
Copy link
Contributor Author

Addressed the feedback

@phinze
Copy link
Contributor

phinze commented Apr 13, 2016

LGTM! (pending travis)

@mitchellh mitchellh merged commit e9fd00c into master Apr 13, 2016
@mitchellh mitchellh deleted the f-pending-ui-2 branch April 13, 2016 19:15
@ghost
Copy link

ghost commented Apr 26, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants