def METHOD_NAME(self, status: str = 'successful', traceback_text: str | None = None) -> None:
    end_rusage = resource.getrusage(resource.RUSAGE_SELF)
    self._db.finish_run(
        id=self._run_id,
        status=status,
        num_lines=self._num_lines,
        num_warnings=self._num_warnings,
        num_errors=self._num_errors,
        no_changes=self._no_changes,
        utime=datetime.timedelta(seconds=end_rusage.ru_utime - self._start_rusage.ru_utime),
        stime=datetime.timedelta(seconds=end_rusage.ru_stime - self._start_rusage.ru_stime),
        maxrss=end_rusage.ru_maxrss,
        maxrss_delta=end_rusage.ru_maxrss - self._start_rusage.ru_maxrss,
        traceback=traceback_text
    )