added support for updating the occurrence of a scheduled task