Input context#
The input Context is a dictionary
used to fill the Jinja templates to generate the submitted job script.
For instance, the following line, declared for instance in the tasks.cfg file
echo "the {{ app_conf }} model"
will be converted to
echo "the CROCO model"
The minimal content of this dictionary is the following, in alphabetical order:
Name |
Type |
Explanation |
Example |
|---|---|---|---|
|
|
App configuration name |
|
|
|
App experiment name |
|
|
|
App name |
|
|
|
Merged version. |
|
|
Itself |
||
|
|
Current cycle |
|
|
|
First date of cycles |
|
|
|
Last date of cycles |
|
|
|
Time step of cycles. |
|
|
|
Rounding precision |
|
|
Path to the json file for this task context [1] |
|
|
|
Task environment configuration [1] |
||
|
User and generated declared environment variables |
||
|
Host instance |
||
|
Host manager instance |
||
|
The worflow logger |
||
|
|
Current member |
|
|
Ensemble size |
|
|
|
Job submission directory [1] |
“/home/username/woom/myworkflow/jobs/task_path”` |
|
|
Job run directory [1] |
“/scratch/username/woom/myapp/prolog/mytask”` |
|
|
Path to the job script [1] |
|
|
|
Local workflow paths (bin, lib, lib/python…) |
||
|
Path to the scratch dir |
|
|
|
|
Task instance |
|
|
|
Task instance |
|
|
{app_path}/{cycle.token}/{task_name}/{member.label} [1] |
|
|
|
|
Task tree instance [1] |
|
|
Task manager instance |
||
|
os module |
||
|
User-defined parameters from the |
||
|
Workflow instance |
||
|
Workflow dir |
“/home/username/woom/myworkflow”` |
|
|
Directories declared in the host configuration |