mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 05:45:37 +08:00
set job state to new in upload tool action so that track_jobs_in_database works
This commit is contained in:
@@ -144,6 +144,7 @@ class UploadToolAction( ToolAction ):
|
||||
job.add_parameter( 'paramfile', to_json_string( json_file_path ) )
|
||||
for i, dataset in enumerate( data_list ):
|
||||
job.add_output_dataset( i, dataset )
|
||||
job.state = trans.app.model.Job.states.NEW
|
||||
trans.app.model.flush()
|
||||
|
||||
# Queue the job for execution
|
||||
|
||||
@@ -206,6 +206,8 @@ def add_file( dataset, json_file ):
|
||||
elif ext == 'scf' and dataset.file_type != 'scf':
|
||||
file_err( "You must manually set the 'File Format' to 'Scf' when uploading scf files.", dataset, json_file )
|
||||
return
|
||||
else:
|
||||
ext = 'binary'
|
||||
data_type = 'binary'
|
||||
if not data_type:
|
||||
# We must have a text file
|
||||
|
||||
Reference in New Issue
Block a user