TheOtherDavid / CoinCheck

A simple app that checks a crypto coin price and sends an SMS alert if there has been a big move recently.
1 stars 0 forks source link

AWS double-fires events #11

Open TheOtherDavid opened 3 years ago

TheOtherDavid commented 3 years ago

AWS occasionally (as often as not, actually) double-fires the input event. this causes two records to be logged to the DB, and two SMS messages to be sent. With either an environment variable or a DB table, we could log the last time we ran the program, and choose not to run it again within 15 minutes or something.

TheOtherDavid commented 3 years ago

DO NOT CONFUSE THIS WITH TIMEOUTS. The timeout for AWS is manually set. If the task hits the timeout, it'll fire again. Lengthen the timeout as the code gains complexity.