-
Notifications
You must be signed in to change notification settings - Fork 928
fix pubsub/poll race on provisioner job logs #2783
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
Conversation
Signed-off-by: Spike Curtis <[email protected]>
Signed-off-by: Spike Curtis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this EOF type thing 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix!
Signed-off-by: spikecurtis <[email protected]>
|
||
// provisionerJobLogsMessage is the message type published on the provisionerJobLogsChannel() channel | ||
type provisionerJobLogsMessage struct { | ||
EndOfLogs bool `json:"end_of_logs,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be End
instead for naming redundancy. Final
may be more apt, chefs choice.
* fix pubsub/poll race on provisioner job logs Signed-off-by: Spike Curtis <[email protected]> * only cancel on non-error Signed-off-by: Spike Curtis <[email protected]> * Improve logging & comments Signed-off-by: spikecurtis <[email protected]>
Fixes #2603