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

updown: bug fixes #46

Merged
merged 1 commit into from
Dec 12, 2024
Merged

updown: bug fixes #46

merged 1 commit into from
Dec 12, 2024

Conversation

coffinsfcompute
Copy link
Contributor

@coffinsfcompute coffinsfcompute commented Dec 11, 2024

This cleans up a lot of the logic that was somewhat hard to follow, and had bugs such as dividing by 8 twice instead of once (so the number of nodes seemed wrong). The user feedback was also somewhat confusing, hopefully it is slightly less confusing.

There are still a few bugs such as the minimum duration seeming to be a bit wonky as when I request a minimum of 1 hour it seems that the backend purchased 2, but maybe that is expected from rounding (I would have to think about it more). More importantly, it seems to misuse the quoted price so that for example one runs deno run prod up -d 1m -p 2.8 then it will quote the rest of the hour (fine), but then it will use that to determine the maximum price to pay for future hours (not fine). Also I remember the command working right away in the past, but it seems to have to wait for the 5 minute cron job now (maybe I am just misremembering, but this is definitely a lot more noticeable now that we supposedly have fast spin up times).

Possibly the command should also just require the input duration to be explicitly in hours instead of quietly rounding up to the next hour increment.

Copy link
Member

@Flaque Flaque left a comment

Choose a reason for hiding this comment

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

amazing!

@coffinsfcompute coffinsfcompute merged commit abb50c9 into main Dec 12, 2024
1 check passed
@coffinsfcompute coffinsfcompute deleted the coffin/updown_bug_fixes branch December 12, 2024 18:37
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