'Finalize any operations the secondary thread has performed.
The database aggregates lots of operations into a single commit, and
this method is used to commit any pending operations as the thread
is about to shut down.'

def ThreadComplete(self):

    if self.secondary_conn:
        self._MaybeCommit(force_commit=True)
