]> git.cworth.org Git - turbot/commit
Fix new hunt submission to not rely on global python state
authorCarl Worth <cworth@cworth.org>
Sat, 17 Oct 2020 00:21:17 +0000 (17:21 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 17 Oct 2020 00:23:13 +0000 (17:23 -0700)
commit032feb6cdd4dc7d9e2584d452b80b521f5b4ea4e
tree98ff3a29e745ae90d3e0d5b228c6d92f1f95feed
parent3201514c9991ffcd1ceefa57ce180a095af7ba0a
Fix new hunt submission to not rely on global python state

It was only by accident that what I had written happened to work,
(apparently AWS reuses Lambda containers within a 30-minute window or
so). Obviously, I don't want to rely on anything like that, so instead
in this commit I take advantage of the "private_metadata" field that
Slack offers for me to pass data back and forth on a view and use that
to decide which function to invoke to handle view submission.
turbot/actions.py