-
Notifications
You must be signed in to change notification settings - Fork 4
Refactoring, speed improvements, optional dependencies #146
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
Conversation
@blokhin Please, allow |
yascheduler.conf
Outdated
engines_dir = %(data_dir)s/engines | ||
|
||
[clouds] | ||
hetzner_token = ngzcJHBUZ0MdbjrbrNaVOtDXmE8iXIpGvnTYVPx02wgHXsKxcbMCh2uhnGIbHj8X |
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.
@knopki I just discarded the token, no worries
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.
OMG, thanks
yascheduler.conf
Outdated
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.
This file should not be committed, right?
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.
Yes, definitely. It's for testing only.
@@ -50,7 +50,8 @@ def upcloud_create_node_sync( | |||
user_data=cloud_config.render() if cloud_config else None, | |||
) | |||
) | |||
ip_addr = server.get_public_ip() | |||
ip_addr = cast(Optional[str], server.get_public_ip()) |
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.
wow, a modern Python becomes so complex!
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.
It's just a combination of a shitty library and my "I don't want to deal with UpCloud"
This PR can be characterized as refactoring.
Most notable changes:
yascheduler[hetzner]
, but the current settings shouldn't break. See 1128c39 fix Lazy load or separate sub-packages for cloud providers #112Also:
ruff
+pyright
instead of big pile of toolssetuptools
hcloud
version to 2.xcollections.abc
imports andDict
->dict
)