Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
fujitsu:hpcgateway:guides:internals:task_submission [2017/09/28 14:31]
127.0.0.1 external edit
fujitsu:hpcgateway:guides:internals:task_submission [2017/09/28 14:53]
127.0.0.1 external edit
Line 1: Line 1:
 ====== Task submission mechanism ====== ====== Task submission mechanism ======
-{{  :​fujitsu:​hpcgateway:​guides:​internals:​Torii_submission_mechanism.png?​800 ​ }}+{{  :​fujitsu:​hpcgateway:​guides:​internals:​Torii_submission_mechanism.png?​direct&800  }}
  
 The picture illustrates the whole mechanism of the task submission: The picture illustrates the whole mechanism of the task submission:
Line 17: Line 17:
 The submission script is a standalone shell script that can be submitted to the batch scheduler. The submission script is a standalone shell script that can be submitted to the batch scheduler.
  
-The submission script is standalone, it does not have any dependency on another file (like the application script). ​+The submission script is standalone, it does not have any dependency on another file (like the application script). ​\\
 The submission script contains all the mechanisms to configure the environment for the application script and the application script itself. The submission script contains all the mechanisms to configure the environment for the application script and the application script itself.
  
-The submission script is part of the scheduler configuration and it is stored on GridFS (ex: ''​clusters/​rnd01/​forge''​)+The submission script is part of the scheduler configuration and it is stored on GridFS (ex: ''​clusters/​rnd01/​forge''​) ​\\
 See ''​script_execute''​ and ''​script_common''​ for the templates. See ''​script_execute''​ and ''​script_common''​ for the templates.
 +
  
 ==== Application script ==== ==== Application script ====
Line 30: Line 31:
  
 The application script is part of the application definition and it is stored on GridFS (ex: ''​applications/​675A865A765A65765A/​app_execute''​) The application script is part of the application definition and it is stored on GridFS (ex: ''​applications/​675A865A765A65765A/​app_execute''​)
 +
  
 ==== Task parameters and inputs ==== ==== Task parameters and inputs ====
Line 38: Line 40:
  
 The parameters and inputs are user to replace the markup that appear in the submission scripts and the application scripts (ex: ''​@@__HPCG_RUN_DIR__@@''​). The parameters and inputs are user to replace the markup that appear in the submission scripts and the application scripts (ex: ''​@@__HPCG_RUN_DIR__@@''​).
 +
 +    "​inputs":​ [
 +        {
 +            "​autoCheck":​ false, ​
 +            "​description":​ "The time the test script will sleep before exiting", ​
 +            "​editable":​ true, 
 +            "​hidden":​ false, ​
 +            "​label":​ "Sleep value", ​
 +            "​labelVisible":​ true, 
 +            "​name":​ "​sleep", ​
 +            "​order":​ 1, 
 +            "​required":​ true, 
 +            "​strict":​ false, ​
 +            "​type":​ "​int", ​
 +            "​valid":​ true, 
 +            "​value":​ 20
 +        }, 
 +        {
 +            "​autoCheck":​ false, ​
 +            "​description":​ "​Select input files that will be copied in the run directory", ​
 +            "​editable":​ true, 
 +            "​files":​ [
 +                {
 +                    "​action":​ "​COPY", ​
 +                    "​mods":​ "​----------", ​
 +                    "​path":​ "/​home/​hpcgadmin/​test", ​
 +                    "​server":​ {
 +                        "​id":​ "​59b1302f6eea4a7e979b2c56", ​
 +                        "​name":​ "​rnd01"​
 +                    }, 
 +                    "​size":​ 42
 +                }
 +            ], 
 +            "​hidden":​ false, ​
 +            "​label":​ "Input files", ​
 +            "​labelVisible":​ true, 
 +            "​name":​ "​input_files", ​
 +            "​order":​ 2, 
 +            "​required":​ true, 
 +            "​type":​ "​file", ​
 +            "​valid":​ true
 +        }
 +    ]
  
 ==== Cluster environment ==== ==== Cluster environment ====