Changeset f20342a in flex_extract.git for For_developers/Sphinx/source/Documentation/Input/jobscript.rst
- Timestamp:
- May 27, 2020, 8:01:54 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 550435b
- Parents:
- a14839a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
For_developers/Sphinx/source/Documentation/Input/jobscript.rst
rb1674ed rf20342a 1 1 ************************* 2 The Jobscript ``job.ksh``2 The job script ``job.ksh`` 3 3 ************************* 4 4 5 The job script is a Korn-shell script which will be created at runtime for each ``flex_extract`` execution in the application modes **remote** and **gateway**.5 The job script is a Korn-shell script which will be created at runtime for each ``flex_extract`` execution in the application modes **remote** and **gateway**. 6 6 7 It is based on the ``job.temp`` template file which isstored in the ``Templates`` directory.8 This template is by itselfgenerated in the installation process from a ``job.template`` template file.7 It is based on the ``job.temp`` template file stored in the ``Templates`` directory. 8 This template is generated in the installation process from a ``job.template`` template file. 9 9 10 ``Flex_extract`` uses the python package `genshi <https://genshi.edgewall.org/>`_ to generate10 ``Flex_extract`` uses the Python package `genshi <https://genshi.edgewall.org/>`_ to generate 11 11 the Korn-shell script from the template files by substituting the individual parameters. 12 These individual parameters are marked by a doubled ``$`` signin ``job.temp``.12 These individual parameters are marked by ``$$`` in ``job.temp``. 13 13 14 The job script has a number of settings for the batch system which are fixedand differentiates between the *ecgate* and the *cca/ccb*14 The job script has a number of settings for the batch system which are fixed, and differentiates between the *ecgate* and the *cca/ccb* 15 15 server system to load the necessary modules for the environment when submitted to the batch queue. 16 16 … … 19 19 20 20 21 What does the job script do?21 What does the job script do? 22 22 --------------------------- 23 23 24 #. It sets necessary batch system parameters 25 #. It prepares the job environment at the ECMWF servers by loading the necessary library modules 26 #. It sets some environment variab els for the single session27 #. It creates the directory structure in the user s ``$SCRATCH`` file system28 #. It creates a CONTROL file on the ECMWF servers whith the parameters set before creating the ``jobscript.ksh``. ``Flex_extract`` has a set of parameters which are given to the jobscript with its default or the user defined values. It also sets the``CONTROL`` as an environment variable.29 #. ``Flex_extract`` is started from within the ``work`` directory of the new directory structure by calling the ``submit.py`` script. It sets new path es for input and output directoryand the recently generated ``CONTROL`` file.30 #. At the end it checks if the script returned an error or not and send the log file via emailto the user.24 #. It sets necessary batch system parameters. 25 #. It prepares the job environment at the ECMWF servers by loading the necessary library modules. 26 #. It sets some environment variables for the single session. 27 #. It creates the directory structure in the user's ``$SCRATCH`` file system. 28 #. It creates a CONTROL file on the ECMWF servers whith the parameters set before creating the ``jobscript.ksh``. ``Flex_extract`` has a set of parameters which are passed to the job script with their default or the user-defined values. It also sets ``CONTROL`` as an environment variable. 29 #. ``Flex_extract`` is started from within the ``work`` directory of the new directory structure by calling the ``submit.py`` script. It sets new paths for input and output directories and the recently generated ``CONTROL`` file. 30 #. At the end, it checks whether the script has returned an error or not, and emails the log file to the user. 31 31 32 32
Note: See TracChangeset
for help on using the changeset viewer.