Make sure jobs are not run twice.