Skip to content

Conversation

@cosmicBboy
Copy link
Contributor

@cosmicBboy cosmicBboy commented Jan 25, 2026

This adds an option to flyte.build to not wait for the image build to complete. Note: when the builder is remote and wait=False, the build method will return the url to the image build task instead of the fully qualified URI

@cosmicBboy cosmicBboy changed the title Implement wait in image builder protocol Add wait in image builder protocol Jan 25, 2026
@cosmicBboy cosmicBboy requested a review from pingsutw January 25, 2026 19:14
@cosmicBboy cosmicBboy closed this Jan 26, 2026
@cosmicBboy cosmicBboy reopened this Jan 26, 2026
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
@cosmicBboy cosmicBboy force-pushed the nielsb/remote-builder-wait branch from 830ad57 to 397db46 Compare January 26, 2026 18:02
Copy link
Contributor

@wild-endeavor wild-endeavor left a comment

Choose a reason for hiding this comment

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

@kumare3 should we introduce a build object? I'm a little worried about the build function sometimes returning one thing and sometimes returning another. it's a bit too implicit i feel.

wait: Wait for the build to finish. If wait is False, the function will return immediately and the build will
run in the background.
Returns:
The image URI. If wait is False when using the remote image builder, the function will return the build image
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, making this an explicit object will be better.
Like ImageBuild object that contains, build job url and uri this can be useful in other places too

Copy link
Member

Choose a reason for hiding this comment

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

+1 to the build object

@kumare3
Copy link
Contributor

kumare3 commented Jan 26, 2026

Also after this PR https://github.com/flyteorg/flyte-sdk/pull/565/changes#r2728932092 is ready we should migrate the asyncio.to_thread to this.
cc @pingsutw fyi

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
@kumare3 kumare3 merged commit 0fa78ad into main Jan 28, 2026
26 checks passed
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.

5 participants