def run(self):
            while True:
                if checker.should_stop():
                    break
                try:
                    bibrec = self.p_q.get_nowait()
                except Empty:
                    break
                close_connection()

                pfap_assign_paper_iteration(self.i, bibrec, self.atul, self.personid_new_id_lock)
        def run(self):
            while True:
                if checker.should_stop():
                    break
                try:
                    bibrec = self.p_q.get_nowait()
                except Empty:
                    break
                close_connection()

                pfap_assign_paper_iteration(self.i, bibrec, self.atul, self.personid_new_id_lock)
    def _pfap_assign_paper(i, p_q, atul, personid_new_id_lock, checker):
        while True:
            # check bibsched
            if checker.should_stop():
                break

            try:
                bibrec = p_q.get_nowait()
            except Empty:
                break

            pfap_assign_paper_iteration(i, bibrec, atul, personid_new_id_lock)
    def _pfap_assign_paper(i, p_q, atul, personid_new_id_lock, checker):
        while True:
            # check bibsched
            if checker.should_stop():
                break

            try:
                bibrec = p_q.get_nowait()
            except Empty:
                break

            pfap_assign_paper_iteration(i, bibrec, atul, personid_new_id_lock)