Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add job_dir.txt as output files of CMLE trainning job. #986

Merged
merged 1 commit into from
Mar 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def create_job(project_id, job, job_id_prefix=None, wait_interval=30):
wait_interval: optional wait interval between calls
to get job status. Defaults to 30.

Outputs:
/tmp/kfp/output/ml_engine/job.json: The json payload of the create job.
/tmp/kfp/output/ml_engine/job_id.txt: The ID of the created job.
/tmp/kfp/output/ml_engine/job_dir.txt: The `jobDir` of the training job.
"""
return CreateJobOp(project_id, job, job_id_prefix,
wait_interval).execute_and_wait()
Expand Down Expand Up @@ -129,3 +133,6 @@ def _dump_job(self, job):
logging.info('Dumping job: {}'.format(job))
gcp_common.dump_file('/tmp/kfp/output/ml_engine/job.json', json.dumps(job))
gcp_common.dump_file('/tmp/kfp/output/ml_engine/job_id.txt', job['jobId'])
if 'trainingInput' in job and 'jobDir' in job['trainingInput']:
gcp_common.dump_file('/tmp/kfp/output/ml_engine/job_dir.txt',
job['trainingInput']['jobDir'])