auto stop scheduler after deploy