-
Notifications
You must be signed in to change notification settings - Fork 0
feat: adds waiting functionality #9
base: main
Are you sure you want to change the base?
Conversation
src/stackit/core/wait.py
Outdated
class WaitConfig: | ||
sleep_before_wait: int = 0 | ||
throttle: int = 5 | ||
timeout: int = 30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the throttle in seconds and the timeout in minutes? Feels a bit strange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And maybe could we have some small description for each field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the throttle in seconds and the timeout in minutes? Feels a bit strange
Yes. That is the same as the Go SDK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the Go SDK the fields are of type time.Duration
instead of int
. Then the user can pass them e.g. either as 5 * time.Seconds
or 1 * time.Minute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, I see.
In that case this should be changes here and everything should be in seconds.
No description provided.