bug fix for RTR removing workers race condition and partition chunks not being sorted by chunk number

bug fix for RTR removing workers race condition and partition chunks not being sorted by chunk number