Skip to content

fix: Exit gracefully on context cancelled#252

Merged
kodiakhq[bot] merged 7 commits intomainfrom
fix/channel_context_hang
Oct 6, 2022
Merged

fix: Exit gracefully on context cancelled#252
kodiakhq[bot] merged 7 commits intomainfrom
fix/channel_context_hang

Conversation

@yevgenypats
Copy link
Copy Markdown
Contributor

Summary

Found a nasty hang when context was cancelled. Still need to add some tests for that to catch regression.

@github-actions github-actions bot added the fix label Oct 5, 2022
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf left a comment

Choose a reason for hiding this comment

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

Nice catch 👍

yevgenypats and others added 3 commits October 6, 2022 15:26
Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
@kodiakhq kodiakhq bot merged commit b4df92e into main Oct 6, 2022
@kodiakhq kodiakhq bot deleted the fix/channel_context_hang branch October 6, 2022 13:23
kodiakhq bot pushed a commit that referenced this pull request Oct 7, 2022
🤖 I have created a release *beep* *boop*
---


## [0.12.8](v0.12.7...v0.12.8) (2022-10-07)


### Bug Fixes

* Error on incorrect table configuration ([#237](#237)) ([6ad75f5](6ad75f5))
* Exit gracefully on context cancelled ([#252](#252)) ([b4df92e](b4df92e))
* Progressbar should go into stdout ([#250](#250)) ([b8bcdad](b8bcdad))
* Recover panic in table resolver and object resolver flows ([#257](#257)) ([04dba02](04dba02))
* Stop if PreResourceResolver fails ([#251](#251)) ([ee83f8f](ee83f8f))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Oct 7, 2022
when we use --log-console we dont want standard output. logs are by default written to stderr so we just close stdout which make any fmt.Print* silent. This makes it easy to use fmt.Print* in the CLI and not use any new abstractions and prop drilling.

This also adds handling of ctrl+c, that should go together with this as well cloudquery/plugin-sdk#252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants