Suppose I have an activity that I want to run every day at noon between October 25th and November 8th. I need to launch a workflow today (September 21st) that will execute the activity at its scheduled times.
I can use a cronSchedule set to “0 12 * * *” to handle the the activity runs, provided the date is between 10/25 and 11/8. My question is: What’s the best way to handle the activity start and stop dates?
Is this something the cron string can handle, or should I use Workflow.sleep to wait until 10/25 and then on each run compare the date to 11/8, at which point I could cancel the workflow? Or is there a better way to do this?