Add Job stdout/stderr to library item info page to aid in debugging.

This commit is contained in:
Nate Coraor
2010-11-30 14:34:17 -05:00
parent 3fb1a2d715
commit a07ef2cdd3
3 changed files with 17 additions and 0 deletions
+1
View File
@@ -1309,6 +1309,7 @@ assign_mapper( context, GalaxySessionToHistoryAssociation, GalaxySessionToHistor
history=relation( History ) ) )
HistoryDatasetAssociation.mapper.add_property( "creating_job_associations", relation( JobToOutputDatasetAssociation ) )
LibraryDatasetDatasetAssociation.mapper.add_property( "creating_job_associations", relation( JobToOutputLibraryDatasetAssociation ) )
assign_mapper( context, Workflow, Workflow.table,
properties=dict( steps=relation( WorkflowStep, backref='workflow',
+15
View File
@@ -109,6 +109,21 @@
${ldda.info}
<div style="clear: both"></div>
</div>
<% job = ldda.creating_job_associations[0].job %>
%if job.stdout.strip() != '':
<div class="form-row">
<label>Job Standard Output</label>
<pre>${job.stdout}</pre>
<div style="clear: both"></div>
</div>
%endif
%if job.stderr.strip() != '':
<div class="form-row">
<label>Job Standard Error</label>
<pre>${job.stderr}</pre>
<div style="clear: both"></div>
</div>
%endif
<div class="form-row">
<div>${ldda.blurb}</div>
</div>
+1
View File
@@ -373,6 +373,7 @@ def add_file( dataset, registry, json_file, output_path ):
# Groom the dataset content if necessary
datatype = registry.get_datatype_by_extension( ext )
datatype.groom_dataset_content( output_path )
raise Exception( 'KAPOW' )
def add_composite_file( dataset, registry, json_file, output_path, files_path ):
if dataset.composite_files: