Ejemplo n.º 1
0
    def _create_job_info(self, job_dir):
        """Create information for given job.

        Meta file will be loaded if exists, and the job information will
        be saved in db backend.

        Args:
            job_dir: Directory path of the job.
        """
        meta = self._build_job_meta(job_dir)

        self.logger.debug("Create job: %s" % meta)

        job_record = JobRecord.from_json(meta)
        job_record.save()
Ejemplo n.º 2
0
    def _create_job_info(self, job_dir):
        """Create information for given job.

        Meta file will be loaded if exists, and the job information will
        be saved in db backend.

        Args:
            job_dir (str): Directory path of the job.
        """
        meta = self._build_job_meta(job_dir)

        self.logger.debug("Create job: %s" % meta)

        job_record = JobRecord.from_json(meta)
        job_record.save()