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

Optimize nap times while the runner waiting for a vm #1513

Merged
merged 1 commit into from Apr 29, 2024

Conversation

enescakir
Copy link
Member

Recently, Furkan modified the workflow to update the firewall rule during VM provisioning. Now, it's updated after the VM reaches the wait label. Consequently, if the runner doesn't check the vm in the time between the VM reaching the wait label and the start of the firewall rule update, it must wait for the firewall rule update to complete.

The VM model has a provisioned_at timestamp, which provides a better way to verify whether the VM has been provisioned.

Furthermore, if we nap for 5 seconds at this point, we could potentially wait an extra 5 seconds, even if the VM is already provisioned, until the next schedule. We know that our fastest VM provisioning time is 18 seconds. Therefore, if we run this label for the first time, we can wait for 18 seconds. This PR increases the checking frequency to 1 second after the initial run, allowing the runner to detect a provisioned VM more promptly.

Recently, Furkan modified the workflow to update the firewall rule
during VM provisioning. Now, it's updated after the VM reaches the
`wait` label. Consequently, if the runner doesn't check the vm in the
time between the VM reaching the `wait` label and the start of the
firewall rule update, it must wait for the firewall rule update to
complete.

The VM model has a `provisioned_at` timestamp, which provides a better
way to verify whether the VM has been provisioned.

Furthermore, if we nap for 5 seconds at this point, we could potentially
wait an extra 5 seconds, even if the VM is already provisioned, until
the next schedule. We know that our fastest VM provisioning time is 18
seconds. Therefore, if we run this label for the first time, we can wait
for 18 seconds. This PR increases the checking frequency to 1 second
after the initial run, allowing the runner to detect a provisioned VM
more promptly.
@enescakir enescakir merged commit 666fa69 into main Apr 29, 2024
6 checks passed
@enescakir enescakir deleted the optimize-runner-naps branch April 29, 2024 14:24
@github-actions github-actions bot locked and limited conversation to collaborators Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants