Schedule Cleanup Task

The Schedule Cleanup Task adjusts employee schedules as a response to an event. For example, employee termination cleanup can be enabled to unassign employees from MVS shifts starting on their termination date. The Schedule Cleanup task should be run on a recurring schedule according to the customer's business needs. For example, the task can be scheduled outside business hours on a daily or weekly basis. This ensures schedules are cleaned up as relevant events occur, and allows for manual corrections in cases such as employees being terminated in error.

When a triggering event occurs, a row is added to the Schedule Cleanup maintenance form with a status of READY. This row includes the affected employee and the start and end dates for schedule cleanup. The next time the task runs, it processes schedule cleanup for each row that is in READY status. The status for a schedule cleanup process can be updated to put the process on hold, and the status of a failed schedule cleanup can be reset to retry the process.

See Schedule cleanup status.

When the clean up process is complete, the task sends a Workmail notification to users with the team permissions specified in the Roles to Notify task parameter. This notification includes details of the schedule cleanup, including the affected employee and the result of the schedule cleanup process. The home team of the employee that is undergoing the schedule clean up process is used to determine which employees to notify. For example, the Cardio team supervisor can be notified for a schedule clean up that is performed after an employee on the Cardio team is terminated.