Closed BrianGallew closed 1 year ago
Hi @BrianGallew, thanks for writing in!
As long as your bolt-python app does not display any error-level logging, the app process that you're aware should be alive and be working properly.
The only possible cause of your situation is that you may have outdated Socket Mode client processes, which should cause the issue you've observed. Could you check my comment at https://github.com/slackapi/java-slack-sdk/issues/803#issuecomment-895768180? I am not sure whether this is your case but I hope this was helpful to you.
So, not bolt-python, it's "raw" slack-sdk.
Checking out your other response, I see this: In this case, the Slack server-side can send payloads to active hosts in a round-robin manner.
The docs at https://api.slack.com/apis/connections/socket-implement#connections say that payloads can be sent to any connection. Am I then to take it that, if I have 5 instances of the application open, I need to assume that events will not be delivered to all of them, but only some "random" sub-set?
OK, I've done some testing and this seems to be the case: Slack seems to do at-least-once message delivery. Now that I know this I can update my app to handle multiple backends queuing messages for handling with deduplication.
(Filling out the following details about bugs will help us solve your issue sooner.)
Reproducible in:
The Slack SDK version
slack-sdk==3.19.0
Python runtime version
Python 3.8.14
OS info
ProductName: Mac OS X ProductVersion: 10.15.7 BuildVersion: 19H2026 Darwin Kernel Version 19.6.0: Tue Jun 21 21:18:39 PDT 2022; root:xnu-6153.141.66~1/RELEASE_X86_64
Steps to reproduce:
[excerpt of the new socket mode slack driver for our internal fork of the skozcen/will project]
Expected result:
I expect to see messages come in within a second or two of sending them via DM. I cannot seem to find a way to expose the claimed intermittent availability issue.
Actual result:
Messages take from approximately zero seconds to 8 minutes to be received by the client.
Requirements
I originally submitted my issue to https://my.slack.com/help/requests/new but they directed me here. From their response: