Wrap the locking of the job in a transaction, do include the update in the of the row lock