How to update schedule status