Closed approxit closed 9 months ago
please create a complementary pull request for golem-core-python
, thank you :)
After additional consideration, we decided that suggested heads will be implemented a little more genetic, with priority_head_subnet_tag
parameter in yaml. This will be used only in case of head node deployment, so this param can be shared in all available_node_types
. Additional demand and scoring will be used in setup, only for the head node and when priority_head_subnet_tag
is truthy.
By default ray-on-golem-heads
subnet is used both for the mainnet and testnet. As providers are available only on the mainnet, it is acceptable for us to have the same configuration for the testnet anyways.
For dev purposes sdk
subnet is used for priority_head_subnet_tag
.
In addition, I've fixed how stacks are cached, as we need to distinguish now the head node demand from worker demand. Both could have the same configs, but context matters from now on.
What I've done:
Notable remarks:
stack._managers[-1]
is a way with no exit. Another SDK API concept with stages should solve this issue.