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

[ML] Restore idle_time_before_shutdown property to Compute Instances #27551

Merged
merged 20 commits into from
Nov 19, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reformatted deprecation warning
  • Loading branch information
nthandeMS committed Nov 17, 2022
commit 2cc869495a7575302fc46a99937e68580765a4d3
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,9 @@ def _to_rest_object(self) -> ComputeResource:
if self.idle_time_before_shutdown_minutes:
idle_time_before_shutdown = f"PT{self.idle_time_before_shutdown_minutes}M"
elif self.idle_time_before_shutdown:
module_logger.warning(
"Property 'idle_time_before_shutdown': This property is deprecated. Please use 'idle_time_before_shutdown_minutes' instead."
warnings.warn(
"This property is deprecated",
nthandeMS marked this conversation as resolved.
Show resolved Hide resolved
DeprecationWarning
)
idle_time_before_shutdown = self.idle_time_before_shutdown
annatisch marked this conversation as resolved.
Show resolved Hide resolved

Expand Down