Changeset 1611:c7bc4de93fbb

Show
Ignore:
Timestamp:
11/06/08 09:44:19 (2 months ago)
Author:
Greg Von Kuster <greg@bx.psu.edu>
branch:
default
Message:

Create a job_to_output_dataset for the upload tool job.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/galaxy/tools/actions/upload.py

    r1605 r1611  
    9494        file_size_str = datatypes.data.nice_size( hda.dataset.file_size ) 
    9595        job.info = "%s, size: %s" % ( hda.info, file_size_str ) 
     96        job.add_output_dataset( hda.name, hda ) 
    9697        job.flush() 
    9798        log.info( 'job id %d ended ok, file size: %s' % ( job.id, file_size_str ) ) 
     
    113114        trans.history.add_dataset( data ) 
    114115        trans.app.model.flush() 
    115         # Indicate job failure by setting state and message 
     116        # Indicate job failure by setting state and info 
    116117        job.state = trans.app.model.Job.states.ERROR 
    117118        job.info = err_msg 
    118         # If the failure is due to a Galaxy framework exception, save the traceback 
     119        job.add_output_dataset( data.name, data ) 
    119120        job.flush() 
    120121        log.info( 'job id %d ended with errors' % job.id )