]> git.cworth.org Git - turbot/commit
Use a thread for creating the Google Sheet when a new channel is created
authorCarl Worth <cworth@cworth.org>
Fri, 9 Oct 2020 22:41:11 +0000 (15:41 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 9 Oct 2020 22:47:44 +0000 (15:47 -0700)
commit3498d36fd61689e078c6eb46f1b103272f524e36
treecb071ffaf39368dfc8c9f5661a63ac2ec3422e46
parentf8da7d3db7b4a0e12efd47a1784ed970e8ec6aed
Use a thread for creating the Google Sheet when a new channel is created

This allows us to return quickly so that Slack doesn't retry sending the event.

As implemented in this commit, this code is a bit cheesy in that it
disables the debug mode and error handling in slack_send_message,
(since the prior implementation of that depended on having a current
Flask app, but now that we are calling this function from a thread we
don't have a current app context).
turbot/slack.py
turbot/turbot.py