0

I have a lambda which is scheduled to run daily. It reads a JSON file which basically contains an array of 10-15 items. Right now it processes all the items daily but I need to make it so that within each item there is a cron schedule expression. And the lambda would check this expression to determine if it needs to process that item today or not.

I'm looking for a can_execute_today() function which takes in today's date and the cron expression and returns True if the item can be processed today. I looked around at libraries like crontab but it does not seem to fit my purpose.

Amol Borkar
  • 1,806
  • 6
  • 29
  • 53
  • Also [Cron parser and validation in python](https://stackoverflow.com/q/13145675/4046632) – buran Apr 08 '22 at 09:17

0 Answers0