in reply to Re: Timed Events
in thread Timed Events

To follow up on this a bit -- if you include the date in your code as well as in the execution control, you now have to update your code if it is necessary to run this off schedule, if the schedule changes, if an execution failed, etc.

Split your concerns. Have the app do what it does well, and have cron control when it runs.

--MidLifeXis

Replies are listed 'Best First'.
Re^3: Timed Events
by PilotinControl (Pilgrim) on Dec 11, 2015 at 14:22 UTC

    All three answers were great. It is an older server which needs replaced however management says just to let it run and when it dies tend to it then. So using the day of the week instead of relying on the crontab for the day will be more reliable as the machine likes to hiccup especially on weekends and it sends the internal date and time off....and especially when the power goes out for a longer period of time than the UPS allows for. Thanks again!