snowglobe 0.4.2__tar.gz → 0.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {snowglobe-0.4.2/src/snowglobe.egg-info → snowglobe-0.4.3}/PKG-INFO +1 -1
- {snowglobe-0.4.2 → snowglobe-0.4.3}/pyproject.toml +1 -1
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe/client/src/cli_utils.py +4 -1
- {snowglobe-0.4.2 → snowglobe-0.4.3/src/snowglobe.egg-info}/PKG-INFO +1 -1
- {snowglobe-0.4.2 → snowglobe-0.4.3}/tests/test_cli.py +2 -2
- {snowglobe-0.4.2 → snowglobe-0.4.3}/LICENSE +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/README.md +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/setup.cfg +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe/client/__init__.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe/client/src/app.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe/client/src/cli.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe/client/src/config.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe/client/src/models.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe/client/src/project_manager.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe/client/src/stats.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe/client/src/utils.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe.egg-info/SOURCES.txt +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe.egg-info/dependency_links.txt +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe.egg-info/entry_points.txt +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe.egg-info/requires.txt +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/src/snowglobe.egg-info/top_level.txt +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/tests/test_app.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/tests/test_config.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/tests/test_heartbeat.py +0 -0
- {snowglobe-0.4.2 → snowglobe-0.4.3}/tests/test_utils.py +0 -0
@@ -256,7 +256,7 @@ def smart_signal_handler(sig, frame):
|
|
256
256
|
sys.exit(0)
|
257
257
|
|
258
258
|
|
259
|
-
def graceful_shutdown():
|
259
|
+
def graceful_shutdown(_sig_num, _frame):
|
260
260
|
"""Handle graceful shutdown with session summary (idempotent, always exits 0).
|
261
261
|
|
262
262
|
This legacy entrypoint avoids toggling internal shutdown state so repeated
|
@@ -268,6 +268,9 @@ def graceful_shutdown():
|
|
268
268
|
console.print("\n[bold yellow]🛑 Graceful shutdown initiated...[/bold yellow]")
|
269
269
|
console.print("[dim]Press Ctrl+C again to force quit[/dim]")
|
270
270
|
|
271
|
+
if cli_state.verbose:
|
272
|
+
console.print(f"signal received: {_sig_num}, frame: {_frame}")
|
273
|
+
|
271
274
|
# Show session summary and exit cleanly
|
272
275
|
console.print("\n[bold blue]🛑 Shutting down...[/bold blue]")
|
273
276
|
show_session_summary()
|
@@ -710,7 +710,7 @@ def process_scenario(request):
|
|
710
710
|
with mock.patch("sys.exit") as mock_exit:
|
711
711
|
from snowglobe.client.src.cli_utils import graceful_shutdown
|
712
712
|
|
713
|
-
graceful_shutdown()
|
713
|
+
graceful_shutdown(2, {})
|
714
714
|
|
715
715
|
mock_get_stats.assert_called_once()
|
716
716
|
mock_exit.assert_called_once_with(0)
|
@@ -724,7 +724,7 @@ def process_scenario(request):
|
|
724
724
|
}
|
725
725
|
|
726
726
|
with mock.patch("sys.exit") as mock_exit:
|
727
|
-
graceful_shutdown()
|
727
|
+
graceful_shutdown(2, {})
|
728
728
|
|
729
729
|
mock_exit.assert_called_once_with(0)
|
730
730
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|