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
While making my personal Slack apps, I found room for improvement in the lazy listener mechanism. The issue can be easily reproduced by running the following code.
The occurrence conditions of this issue are:
Add custom properties to context object
Use lazy listeners
Thus, the usage that will be supported by #544 will be also affected.
app=App()
@app.middlewaredefset_db_connection(context, next_):
# When making a deep copy of context fails due to an error "cannot pickle SSLContext object" etc.context["s3"] =boto3.client("s3")
next_()
defjust_ack(ack):
ack()
defdo_something(client, body):
passapp.command(ack=just_ack, lazy=[do_something])
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
While making my personal Slack apps, I found room for improvement in the lazy listener mechanism. The issue can be easily reproduced by running the following code.
The occurrence conditions of this issue are:
Thus, the usage that will be supported by #544 will be also affected.
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: