Skip to content

Conversation

@r4victor
Copy link
Collaborator

@r4victor r4victor commented Feb 9, 2026

Related to #3551

This PR optimizes AWSCompute.create_instance() from 15-30s to 5s by removing instance.wait_until_running(), which checked instance state with a 15s delay, and implementing update_provisioning_data() instead.

Also fixes a bug that could lead to orphaned AWS instances – a try/except block around ec2_resource.create_instances() were also applied to subsequent instance.reload() and ec2_client.cancel_spot_instance_requests() calls without distinction.

@r4victor r4victor merged commit fb4a4da into master Feb 9, 2026
28 checks passed
@r4victor r4victor deleted the pr_optimize_create_instance branch February 9, 2026 10:21
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.

1 participant