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

Easily print task or other model #21

Open
buchanae opened this issue Feb 1, 2018 · 2 comments · Fixed by #44
Open

Easily print task or other model #21

buchanae opened this issue Feb 1, 2018 · 2 comments · Fixed by #44
Assignees
Milestone

Comments

@buchanae
Copy link

buchanae commented Feb 1, 2018

Models are not easily printable. as_dict and as_json methods exist, but don't dump an indented/pretty form that's readable.

@buchanae
Copy link
Author

buchanae commented Feb 1, 2018

Currently, this is what a printed task looks like:

Task(id='b7pacb33qt7nh789q47g', state=u'EXECUTOR_ERROR', name='5641737/P7-noXY/task-2', description=None, inputs=[Input(url='swift://smc-het/working_dir/5641737/tasks/tumors/P7-noXY/3/output_cnvs', path='/mnt/nfs1/smc-het/working_dir/5641737/tasks/tumors/P7-noXY/3/output_cnvs', type=u'FILE', name=None, description=None, content=None), Input(url='swift://smc-het/working_dir/5641737/tasks/tumors/P7-noXY/3/output_variants', path='/mnt/nfs1/smc-het/working_dir/5641737/tasks/tumors/P7-noXY/3/output_variants', type=u'FILE', name=None, description=None, content=None), Input(url=None, path='/opt/gwftool/script.sh', type=u'FILE', name=None, description=None, content=None), Input(url='swift://smc-het/working_dir/5641737/tools/PhyloWGS', path='/mnt/nfs1/smc-het/working_dir/5641737/tools/PhyloWGS', type=u'DIRECTORY', name=None, description=None, content=None)], outputs=[Output(url='swift://smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4/OUTPUT_CLONAL_FREQS', path='/mnt/nfs1/smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4/OUTPUT_CLONAL_FREQS', type=u'FILE', name=None, description=None), Output(url='swift://smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4/OUTPUT_TOP_K_TREES', path='/mnt/nfs1/smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4/OUTPUT_TOP_K_TREES', type=u'FILE', name=None, description=None), Output(url='swift://smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4/TREES', path='/mnt/nfs1/smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4/trees.zip', type=u'FILE', name=None, description=None), Output(url='swift://smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4', path='/mnt/nfs1/smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4', type=u'DIRECTORY', name=None, description=None)], resources=Resources(cpu_cores=2, ram_gb=None, disk_gb=None, preemptible=None, zones=None), executors=[Executor(image='docker.compbio.ohsu.edu/smc-het/5641737/phylowgs:smchet1', command=['bash', '/opt/gwftool/script.sh'], workdir='/mnt/nfs1/smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4', stdin=None, stdout='/mnt/nfs1/smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4/stdout', stderr='/mnt/nfs1/smc-het/working_dir/5641737/tasks/tumors/P7-noXY/4/stderr', env=None)], volumes=None, tags={u'tumor': u'P7-noXY', u'entry': u'5641737'}, logs=[TaskLog(start_time=datetime.datetime(2017, 10, 27, 4, 0, 18, 969520, tzinfo=tzutc()), end_time=datetime.datetime(2017, 10, 27, 3, 59, 35, 469078, tzinfo=tzutc()), metadata=None, logs=[ExecutorLog(start_time=datetime.datetime(2017, 10, 27, 4, 1, 0, 291021, tzinfo=tzutc()), end_time=datetime.datetime(2017, 10, 27, 4, 1, 28, 5058, tzinfo=tzutc()), stdout=None, stderr=None, exit_code=1)], outputs=None, system_logs=None)], creation_time=None)

@buchanae
Copy link
Author

buchanae commented Feb 1, 2018

Looks more like this in a terminal:

screen shot 2018-02-01 at 10 25 52 am

@uniqueg uniqueg added this to the 0.5.0 milestone Feb 11, 2023
@uniqueg uniqueg self-assigned this Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants