Skip to content

Conversation

@sfc-gh-jwilkowski
Copy link
Contributor

@sfc-gh-jwilkowski sfc-gh-jwilkowski commented Jul 14, 2025

Added entry for new auto_suspend_secs parameter functionality in SPCS service commands (deploy, set, unset) that allows configuring automatic service suspension after inactivity period.

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually on MacOS.
  • I've confirmed that my changes are working by executing CLI's commands manually on Windows.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.

Changes description

https://snowflakecomputing.atlassian.net/browse/SNOW-2155083

Added entry for new auto_suspend_secs parameter functionality in SPCS service commands (deploy, set, unset) that allows configuring automatic service suspension after inactivity period.
@sfc-gh-jwilkowski sfc-gh-jwilkowski force-pushed the jw/SNOW-2155083-auto-suspend-secs-support branch from d7faffb to 6d93b48 Compare July 15, 2025 07:18
@sfc-gh-jwilkowski sfc-gh-jwilkowski marked this pull request as ready for review October 22, 2025 12:16
@sfc-gh-jwilkowski sfc-gh-jwilkowski requested a review from a team as a code owner October 22, 2025 12:16
max_instances = 3
query_warehouse = "test_warehouse"
auto_resume = False
auto_suspend_secs = 600
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this could be defined instead of magic number?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of those matter really, it's just an integer. This variable is local to this test only, I wouldn't see any point in extracting values of service_name, min_instances, max_instances etc either

@patch(EXECUTE_QUERY)
def test_set_property_auto_suspend_secs_only(mock_execute_query):
service_name = "test_service"
auto_suspend_secs = 300
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is another magic value. Why not 600 like earlier?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as above, the exact value doesn't really matter, it just needs to be some positive integer

@sfc-gh-mraba sfc-gh-mraba self-requested a review October 22, 2025 13:06
@sfc-gh-jwilkowski sfc-gh-jwilkowski merged commit ec2cc02 into main Oct 22, 2025
22 checks passed
@sfc-gh-jwilkowski sfc-gh-jwilkowski deleted the jw/SNOW-2155083-auto-suspend-secs-support branch October 22, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants