TI Commands To Change / Update The Schedule of Chores
Posted: Wed Jan 04, 2012 10:56 pm
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?
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?