Skip to content

Commit

Permalink
use module to check upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Jovelin committed Jan 6, 2025
1 parent 925f5b6 commit 253af08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ega_upload_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,7 @@ def write_qsubs(alias, file, box, password, workingdir, mem, run_time, host, dat
update_message_status(database, credential_file, table, 'NULL', alias, box, file, 'error')

# launch check upload job
myscript = '/u/rjovelin/SOFT/anaconda3/bin/python3.6 /scratch2/groups/gsi/bis/rjovelin/EGA_submissions_portal/ega_upload_files.py'
checkcmd = 'sleep 60; {0} check_upload -w {1} -b {2} -f {3} -db {4} -t {5} -a {6} -c {7}'.format(myscript, workingdir, box, file, database, table, alias, credential_file)

checkcmd = 'sleep 60; module load ega-upload; egaUpload check_upload -w {0} -b {1} -f {2} -db {3} -t {4} -a {5} -c {6}'.format(workingdir, box, file, database, table, alias, credential_file)
bashscript2 = os.path.join(qsubdir, alias + '.' + filename + '.check_upload.sh')
with open(bashscript2, 'w') as newfile:
newfile.write(checkcmd)
Expand Down

0 comments on commit 253af08

Please sign in to comment.