The nebius sdk release 0.3.0 introduced auth_options as a replacement for options_to_metadata. When migrating dstack to the new sdk, we noticed that Operation methods such as Operation.update() do not accept auth_options. If auth_options are not passed, the method can block fro 15 minutes if the credentials become invalid since the last call. Because of this, we cannot migrate to sdk 0.3.x.
Note: Operation.update() calls OperationServiceClient.get(), which does accept auth_options.
dstack PR: dstackai/dstack#3222
The nebius sdk release 0.3.0 introduced
auth_optionsas a replacement foroptions_to_metadata. When migrating dstack to the new sdk, we noticed thatOperationmethods such asOperation.update()do not acceptauth_options. Ifauth_optionsare not passed, the method can block fro 15 minutes if the credentials become invalid since the last call. Because of this, we cannot migrate to sdk 0.3.x.Note:
Operation.update()callsOperationServiceClient.get(), which does acceptauth_options.dstack PR: dstackai/dstack#3222