You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to be able to supply my own executor to my Bolt app. For my particular use-case, I would like to use an executor from Flask-Executor for an app running in Flask, so that my listener functions automatically run with the current request context.
Additionally, it would allow users to configure the number of threads and the threading strategy (min threads, max threads, etc.).
I would be willing to create a pull request for this feature if it's acceptable. I suspect all that would be required is a new keyword-only parameter to App.__init__. We could fall back to the existing behavior if it's None.
My current work-around is to monkey-patch the executors in ThreadListenerRunner and ThreadLazyListenerRunner. Not difficult, but not future-proof.
Category (place an x in each of the [ ])
slack_bolt.App and/or its core components
slack_bolt.async_app.AsyncApp and/or its core components
It would be helpful to be able to supply my own executor to my Bolt app. For my particular use-case, I would like to use an executor from Flask-Executor for an app running in Flask, so that my listener functions automatically run with the current request context.
Additionally, it would allow users to configure the number of threads and the threading strategy (min threads, max threads, etc.).
I would be willing to create a pull request for this feature if it's acceptable. I suspect all that would be required is a new keyword-only parameter to
App.__init__
. We could fall back to the existing behavior if it'sNone
.My current work-around is to monkey-patch the executors in
ThreadListenerRunner
andThreadLazyListenerRunner
. Not difficult, but not future-proof.Category (place an
x
in each of the[ ]
)Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: