Skip to content

Conversation

@p2004a
Copy link
Contributor

@p2004a p2004a commented Nov 23, 2025

Adds --instance-termination-action=DELETE to delete instance when preempted. Without this, when preemptible VM is interrupted it leaves the instance in shutdown state with disk still incurring cost.

To use that flag I also had to switch to spot VM provisioning, which costs the same, have the same functionality and a few more features.

Spot VMs unlike preemptible ones to not have maximum runtime length, so I've picked 3d max runtime as that's already used in the script as "max workflow runtime".

Adds `--instance-termination-action=DELETE` to delete instance when
preempted. Without this, when preemptible VM is interrupted it
leaves the instance in shutdown state with disk still incurring
cost.

To use that flag I also had to switch to spot VM provisioning, which
costs the same, have the same base behavior and a few more features.

Spot VMs unlike preemptible ones do not have a maximum runtime
length, so I've picked 3d max runtime as that's already used in the
script as "max workflow runtime".
@ravwojdyla ravwojdyla merged commit ab5ba6e into related-sciences:main Nov 24, 2025
1 check 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.

2 participants