Closed NirmalVatsyayan closed 3 months ago
Hey @NirmalVatsyayan π It sounds like automatic retries might be happening due to a delayed ack
response even though your function is still running!
It does seem like you're calling ack
right away, but with process_before_response
being True
this timeout might still be happening because the response is being delayed. I think "lazy listeners" might be useful for exactly this though!
The docs have an example of setting this up and I think sending the ack
response before continuing the long running process might be helpful here. Please let me know if you give this a try, whether it works or not, or have other questions!
FWIW I've also found "duplicate" events can be common if I forget to start my app while developing. Then a flood of events comes all at once, over some period of time! I don't think this is exactly the problem you're seeing, but just wanted to give ya a heads up π
Thanks, let me revert after testing with changes.
π It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.
As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.
Whenever a message processing take more than a certain time, i am receiving duplicate events for app_mention.
Reproducible in:
The
slack_bolt
versionPython runtime version
OS info
Steps to reproduce:
Expected result:
Always avoid duplicate message
Actual result:
API call happening multiple times for same event and message