mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
Fix import export graceful shutdown (#476)
* Tech spec for graceful shutdown * Graceful shutdown of importers/exporters * Update socket to include graceful shutdown orchestration * Adding tests for conditions tracked in this PR
This commit is contained in:
parent
4361e8ccca
commit
96c2b73457
17 changed files with 2668 additions and 193 deletions
|
|
@ -63,6 +63,7 @@ class TestSocketEndpoint:
|
|||
|
||||
mock_ws = AsyncMock()
|
||||
mock_ws.__aiter__ = lambda self: async_iter()
|
||||
mock_ws.closed = False # Set closed attribute
|
||||
mock_running = MagicMock()
|
||||
|
||||
# Call listener method
|
||||
|
|
@ -92,6 +93,7 @@ class TestSocketEndpoint:
|
|||
|
||||
mock_ws = AsyncMock()
|
||||
mock_ws.__aiter__ = lambda self: async_iter()
|
||||
mock_ws.closed = False # Set closed attribute
|
||||
mock_running = MagicMock()
|
||||
|
||||
# Call listener method
|
||||
|
|
@ -121,6 +123,7 @@ class TestSocketEndpoint:
|
|||
|
||||
mock_ws = AsyncMock()
|
||||
mock_ws.__aiter__ = lambda self: async_iter()
|
||||
mock_ws.closed = False # Set closed attribute
|
||||
mock_running = MagicMock()
|
||||
|
||||
# Call listener method
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue