Skip to content

Commit

Permalink
Fix: AttributeError: 'MicroVM' object has no attribute 'send_shutdown…
Browse files Browse the repository at this point in the history
…_message'

Error reported on #652
  • Loading branch information
hoh committed Jul 4, 2024
1 parent 9095e93 commit 753d0d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aleph/vm/controllers/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ async def handle_persistent_vm(config: Configuration, execution: Union[MicroVM,
def callback():

Check warning on line 86 in src/aleph/vm/controllers/__main__.py

View check run for this annotation

Codecov / codecov/patch

src/aleph/vm/controllers/__main__.py#L86

Added line #L86 was not covered by tests
"""Callback for the signal handler to stop the VM and cleanup properly on SIGTERM."""
loop.create_task(execution.teardown())

Check warning on line 88 in src/aleph/vm/controllers/__main__.py

View check run for this annotation

Codecov / codecov/patch

src/aleph/vm/controllers/__main__.py#L88

Added line #L88 was not covered by tests

loop.add_signal_handler(signal.SIGTERM, callback)

Check warning on line 90 in src/aleph/vm/controllers/__main__.py

View check run for this annotation

Codecov / codecov/patch

src/aleph/vm/controllers/__main__.py#L90

Added line #L90 was not covered by tests

await process.wait()
Expand Down

0 comments on commit 753d0d4

Please sign in to comment.