-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Description
When using the Slack CLI to run a bolt for python project, the CLI process will sometimes terminate without cleaning up the Bolt Python process. This leaves a daemon type python process running on my machine.
This can be a pain point, I've accidentally created multiple instances of socket mode apps leaving the Slack to dispatch events randomly between them.
Version
Using lack v3.3.0
OS Info
ProductName: macOS
ProductVersion: 15.5
BuildVersion: 24F74
Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000
Steps to reproduce:
slack create my-test-app -t https://github.com/slack-samples/bolt-python-starter-templateslack run- Once the app is running, quickly disconnect and reconnect your machine from the internet
- The Slack CLI process will terminate with the following error
🚫 Failed to stream the most recent activity logs (streaming_activity_logs_error)
HTTP request failed (http_request_failed)- The python process should reconnect the socket connection
- Triggering an event to be dispatch to your app like loading the app_home will log messages in the terminal
- You can use the activity monitor to clean up the demon process
Expected result:
When the Slack CLI process terminates I expect that child processes it created are cleaned up as well
Actual result:
Its seems like some child processes created by the CLI are not clean up properly
Note
This may also be an issue with the hooks implementations
Requirements
- I've read and understood the Contributing guidelines and have done my best effort to follow them.
- I've read and agree to the Code of Conduct.
- I've searched for any related issues and avoided creating a duplicate issue.