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.