code: def register_job_from_link(self, link, key, **kwargs):
          
          job_config = kwargs.get('job_config', None)
          if job_config is None:
              job_config = link.args
          status = kwargs.get('status', JobStatus.unknown)
          job_details = JobDetails(jobname=link.linkname,
                                   jobkey=key,
                                   appname=link.appname,
                                   logfile=kwargs.get('logfile'),
                                   jobconfig=job_config,
                                   timestamp=get_timestamp(),
                                   file_dict=copy.deepcopy(link.files),
                                   sub_file_dict=copy.deepcopy(link.sub_files),
                                   status=status)
          self.register_job(job_details)
          return job_details
docs: Register a job in the `JobArchive` from a `Link` object