details: http://www.bx.psu.edu/hg/galaxy/rev/c7bc4de93fbb changeset: 1611:c7bc4de93fbb user: Greg Von Kuster <greg@bx.psu.edu> date: Thu Nov 06 09:44:19 2008 -0500 description: Create a job_to_output_dataset for the upload tool job. 1 file(s) affected in this change: lib/galaxy/tools/actions/upload.py diffs (24 lines): diff -r 604b4b49e93f -r c7bc4de93fbb lib/galaxy/tools/actions/upload.py --- a/lib/galaxy/tools/actions/upload.py Wed Nov 05 16:00:35 2008 -0500 +++ b/lib/galaxy/tools/actions/upload.py Thu Nov 06 09:44:19 2008 -0500 @@ -93,6 +93,7 @@ job.state = trans.app.model.Job.states.OK file_size_str = datatypes.data.nice_size( hda.dataset.file_size ) job.info = "%s, size: %s" % ( hda.info, file_size_str ) + job.add_output_dataset( hda.name, hda ) job.flush() log.info( 'job id %d ended ok, file size: %s' % ( job.id, file_size_str ) ) trans.log_event( 'job id %d ended ok, file size: %s' % ( job.id, file_size_str ), tool_id=tool.id ) @@ -112,10 +113,10 @@ data.flush() trans.history.add_dataset( data ) trans.app.model.flush() - # Indicate job failure by setting state and message + # Indicate job failure by setting state and info job.state = trans.app.model.Job.states.ERROR job.info = err_msg - # If the failure is due to a Galaxy framework exception, save the traceback + job.add_output_dataset( data.name, data ) job.flush() log.info( 'job id %d ended with errors' % job.id ) trans.log_event( 'job id %d ended with errors' % job.id, tool_id=job.tool_id )