Only set event if new task is scheduled before previous one