コード例 #1
0
ファイル: engine.py プロジェクト: wmorales/oq-engine
    def _get_job_profile(calc_mode, job_type, owner):
        """Create an OqJobProfile, save it to the db, commit, and return."""
        job_profile = OqJobProfile(calc_mode=calc_mode, job_type=job_type)

        _insert_input_files(params, job)
        _store_input_parameters(params, calc_mode, job_profile)

        job_profile.owner = owner
        job_profile.save()
        Job2profile(oq_job=job, oq_job_profile=job_profile).save()

        return job_profile
コード例 #2
0
    def _get_job_profile(calc_mode, job_type, owner):
        """Create an OqJobProfile, save it to the db, commit, and return."""
        job_profile = OqJobProfile(calc_mode=calc_mode, job_type=job_type)

        _insert_input_files(params, job, force_inputs)
        _store_input_parameters(params, calc_mode, job_profile)

        job_profile.owner = owner
        job_profile.force_inputs = force_inputs
        job_profile.save()
        Job2profile(oq_job=job, oq_job_profile=job_profile).save()

        return job_profile