commit/galaxy-central: natefoo: Fix the race condition of the upload tool's outputs not being created before the output size check occurs. Thanks Tao Liu.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/7e1dca8036b8/ changeset: 7e1dca8036b8 branches: user: natefoo date: 2011-06-02 19:10:28 summary: Fix the race condition of the upload tool's outputs not being created before the output size check occurs. Thanks Tao Liu. affected #: 1 file (196 bytes) --- a/lib/galaxy/tools/actions/upload_common.py Thu Jun 02 12:11:53 2011 -0400 +++ b/lib/galaxy/tools/actions/upload_common.py Thu Jun 02 13:10:28 2011 -0400 @@ -322,9 +322,13 @@ if folder: for i, dataset in enumerate( data_list ): job.add_output_library_dataset( 'output%i' % i, dataset ) + # Create an empty file immediately + open( dataset.file_name, "w" ).close() else: for i, dataset in enumerate( data_list ): job.add_output_dataset( 'output%i' % i, dataset ) + # Create an empty file immediately + open( dataset.file_name, "w" ).close() job.state = job.states.NEW trans.sa_session.add( job ) trans.sa_session.flush() Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket