def _set_status_self(self, key=JobDetails.topkey, status=JobStatus.unknown):
        """Set the status of this job, both in self.jobs and
        in the `JobArchive` if it is present. """
        fullkey = JobDetails.make_fullkey(self.full_linkname, key)
        if fullkey in self.jobs:
            self.jobs[fullkey].status = status
            if self._job_archive:
                self._job_archive.register_job(self.jobs[fullkey])
        else:
            self._register_self('dummy.log', key, status)
Set the status of this job, both in self.jobs and
        in the `JobArchive` if it is present.