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.
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.
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.