Skip to content

Commit

Permalink
add on_platform_shutdown docs (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
thrau committed Jan 28, 2023
1 parent dada0a2 commit 0756d2b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions content/en/contributing/localstack-extensions.md
Expand Up @@ -68,6 +68,7 @@ class Extension(BaseExtension):
- update_request_handlers
- update_response_handlers
- on_platform_ready
- on_platform_shutdown
"""

namespace: str = "localstack.extensions"
Expand Down Expand Up @@ -114,6 +115,14 @@ class Extension(BaseExtension):
Called when LocalStack is ready and the Ready marker has been printed.
"""
pass

def on_platform_shutdown(self):
"""
Called when LocalStack is shutting down. Can be used to close any resources (threads, processes, sockets, etc.).
Added in v1.4
"""
pass
```

A minimal example would look like this:
Expand Down

0 comments on commit 0756d2b

Please sign in to comment.