added correct jid functionality. if job 1 finishes before 2 and 3, then new job comes, new job gets jid 1