Changeset 96e1533 in flex_extract.git for source/python/submit.py


Ignore:
Timestamp:
Nov 10, 2018, 9:37:36 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
1abf820
Parents:
8500ba1
Message:

redefined test data dir and completed unittests for tools module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/submit.py

    r274f9ef r96e1533  
    9494        if c.request == 0 or c.request == 2:
    9595            prepare_flexpart(args.ppid, c)
    96             normal_exit(c.mailfail, 'FLEX_EXTRACT IS DONE!')
     96            exit_message = 'FLEX_EXTRACT IS DONE!'
    9797        else:
    98             normal_exit(c.mailfail, 'PRINTING MARS_REQUESTS DONE!')
    99     # send files to ECMWF server and install there
     98            exit_message = 'PRINTING MARS_REQUESTS DONE!'
     99    # send files to ECMWF server
    100100    else:
    101101        submit(args.job_template, c, args.queue)
     102
     103    normal_exit(c.mailops, c.queue, exit_message)
    102104
    103105    return
     
    147149            f.write('\n'.join(lftextondemand))
    148150
    149         submit_job_to_ecserver(queue, job_file)
     151        job_id = submit_job_to_ecserver(queue, job_file)
    150152
    151153    else:
     
    173175            f.write('\n'.join(lftextoper))
    174176
    175         submit_job_to_ecserver(queue, job_file)
     177        job_id = submit_job_to_ecserver(queue, job_file)
    176178
    177179    # --------------------------------------------------------------------------
     180    print('The job id is: ' + str(job_id.strip()))
    178181    print('You should get an email with subject flex.hostname.pid')
    179182
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG