• I'm getting twice Job 1. And I think the issue is

    set @job = (select TOP 1 name from #rerunjb)