I am looking for the following workflow:
- Add an entry to a table of my Postgres database with a
end_date
andstate
(with the following values:active
ordone
) columns. - Execute a lambda at the exact
end_date
value to update thestate
of this specific entry fromactive
todone
The only ressources I found on Google about how scheduling a lambda function was for repetitive execution but I'm looking for single execution at specific date and time.
Any suggestions?
1 Answer 1
You can schedule a lambda function to run as a crontab entry, and in the crontab entry set the exact date/time with no repetition.
-
1How does this execute on the exact end date? Assuming there's more than one unique value across all records.JeffO– JeffO2016年05月06日 15:49:01 +00:00Commented May 6, 2016 at 15:49
end_date
?active
todone
on all the rows of the table that are marked asactive