-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better supports for Events API on FaaS #395
Comments
@aoberoi @stevengill @shaydewael
|
My biggest concern is introducing an option for this behavior makes sample code, middleware, and documentation less portable. If some apps have the option set to the opposite of the default, they have to be very careful to comb through all their code to modify I think the optionality will fragment our audience and increase our effort. Is that worth it? Why can't the FaaS implementation send responses after the event is fully processed (which it can in v2)? Even the |
@aoberoi
This is also an option. One thing I need to mention here is that if a Receiver awaits for the completion of listeners, it may result in a 3-second timeout. If we go with your idea, we may should mention the possibility of the ack timeouts and also encourage developers to consider some ways to handle async executions (e.g., Thanks for the great suggestion. Now, I'm happy to go with changing the |
PR #444 is going to add a new flag to enable developers to customize the behavior of |
Is this issue a duplicate of #361? Or can it also be closed because we've converged on a solution and the discussion is done? |
We don't have anything further to discuss but in my opinion, we can close this issue when we merge #444 - we're almost fixing this but still in progress. |
As mentioned in the version 2.0.0, #444 has been merged and the option called |
Let me reopen this issue. I noticed that |
I'd prefer to close this issue, and create a new issue to track the |
Agreed. The issue for the bug is #462 (for reference) |
Description
Related to #361, I would like to introduce a new option to
AppOptions
in the next minor version or Bolt 2.I would love to get you all's suggestions for better naming but it is a flag to turn on/off the automatic Events API request acknowledgment. It allows developers to customize the behavior here: https://github.com/slackapi/bolt/blob/%40slack/bolt%401.5.0/src/App.ts#L474-L475
If we go with a name like
autoEventAck
, the default value is supposed to betrue
. If a developer set it asfalse
, theapp.event
listener hasack
function and it's expected to call it for sure.This is necessary to run Bolt apps safely on FaaS (Function-as-a-Service). Without this, Events API handlers may unexpectedly be terminated even while they're still running.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: