Set the right state even though the job is still running.