Ensure task state is persisted after assigning to worker