Issues making Slack requests
simpsora opened this issue · 1 comments
simpsora commented
Slack messages are sent one-at-a-time, potentially with a 1-second sleep in between (controlled by config value slack_sleep_enabled
).
For large datasets, this can result in either:
- a very long time to send all messages, when sleep is enabled (one second between each plus the time taken to establish the TCP connection and send the message)
- Slack rate-limiting when sleep is disabled
Ideally slack messages would be built up and sent either as one message or in batches, to reduce the time taken to send and the number of requests to the Slack API.
rudrasingh99 commented
+1 Nice idea to combine a bunch of data as a whole rather than single domain per message.