Page 1 of 1

TI Commands To Change / Update The Schedule of Chores

Posted: Wed Jan 04, 2012 10:56 pm
by Alan Kirk
I'm sure that I'm not the only one who has had a situation where chores need to be turned on at certain times and off at other times... but haven't been.

If we could manipulate the enabled status of chores via a TI command, it would be possible to run an overnight housekeeping chore to update that status for all of the main chores, ensuring that chores which need to be run for that day are on, and ones which don't are off.

Going further, you may have situations where chores need to be run on a different schedule to usual (say, running updates more frequently on the last day of the month). For these, it would seem to be useful to have the ability to alter the chore's schedule automatically without needing to manually deactivate, change the chore schedule, reactivate, then repeat the whole process when the abnormal period has ended.

Yes, I know that it would be possible to write code in the prolog to determine whether to run the chore and set the original chore at the shortest expected interval. (For instance if the chore normally runs hourly but on one day of the month you need it to run every 15 minutes, you could set it to run at 15 minute intervals and quit 3 out of 4 times on all but that one day.) However that would seem to be a wasteful solution in terms of server processing time.

Thoughts?

Re: TI Commands To Change / Update The Schedule of Chores

Posted: Thu Jan 05, 2012 12:32 am
by Martin Ryan
Alan Kirk wrote:However that would seem to be a wasteful solution in terms of server processing time.
Not to mention the massive bloat in the message log.

I currently have two processes that need to run every half hour during the business day, but could be hourly between 5pm and 10pm and off between 10pm-5am. The ability you mention would save a lot of scrolling in the message log when I need to check if a process ran successfully a few days ago.

Either the method you mention would be good, or alternatively a more fully featured way of managing when chores are run. As you and I are both pointing out, there are a lot of chores that have different frequency requirements at different times of the day/week/month. Being able to reflect this - instead of going for the most frequent runs required - would be useful.

Re: TI Commands To Change / Update The Schedule of Chores

Posted: Wed Dec 17, 2014 10:34 pm
by Alan Kirk
I've raised this in the DeveloperWorks RFE group as request 63585.

Re: TI Commands To Change / Update The Schedule of Chores

Posted: Sun Mar 31, 2019 11:03 pm
by jv_oz
Thanks Alan. I have upvoted your suggestion.