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

use CompletableFuture instead Future to listen progress in the task #98

Merged
merged 11 commits into from
Aug 17, 2022

Conversation

jorgeaguileraseqera
Copy link
Contributor

closes #79

@jorgeaguileraseqera jorgeaguileraseqera self-assigned this Aug 16, 2022
@jorgeaguileraseqera jorgeaguileraseqera linked an issue Aug 16, 2022 that may be closed by this pull request
@pditommaso
Copy link
Collaborator

Ok, I went further with the idea of just using the build result completable future. I've also improved a bit the error reporting when the build fails returning the build error message.

There's something to fix with the CostomImageControllerTest but cannot figure out what's the problem. Please give it look

Signed-off-by: Paolo Di Tommaso <[email protected]>
@pditommaso pditommaso force-pushed the 79-improve-image-build-waiting-mechanism-1 branch from 7a6fcfa to c4900c1 Compare August 17, 2022 09:54
@jorgeaguileraseqera
Copy link
Contributor Author

Please give it look

Fixed. if the image was not requested previously the ContainerService will return null and StorageService and empty Optional

@pditommaso
Copy link
Collaborator

Nice! very neat this implementation 🤓

@pditommaso pditommaso merged commit e74194c into master Aug 17, 2022
@pditommaso pditommaso deleted the 79-improve-image-build-waiting-mechanism-1 branch August 17, 2022 12:22
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.

Improve image build waiting mechanism
2 participants