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 Both sides next revision
fujitsu:hpcgateway:guides:internals:picoms [2018/03/26 13:10]
fujitsu
fujitsu:hpcgateway:guides:internals:picoms [2018/03/26 13:32]
fujitsu
Line 20: Line 20:
  
  
 +=== Runlog structure ===
 +
 +The runlog is the center of the dialog between Gateway and the picom script.
 +
 +The runlog contains :
 +  * the picom script (python)
 +  * the picom description (JSON)
 +  * the tasks templates (JSONs)
 +  * the log of the different script executions
 +
 +<​code>​
 +$ tree -L 2 /​home/​michael/​hpcgateway/​runlog/​michael/​2018/​02/​21/​picom_4857
 +/​home/​michael/​hpcgateway/​runlog/​michael/​2018/​02/​21/​picom_4857
 +├── picom.json
 +├── picom.log
 +├── script.py
 +├── steps
 +│   ├── 0
 +│   ├── 1
 +│   ├── 2
 +│   ├── 3
 +│   └── 4
 +└── templates
 +    ├── template_0000.json
 +    ├── template_0001.json
 +    └── template_0002.json
 +
 +</​code>​
 +
 +There is also a sub-directory for each '​step'​ of the picom execution.
 +Each step sub-directory contains:
 +  * the context description (read and written by the script)
 +  * the description of all the tasks before the script execution
 +  * the description of the tasks the must be submitted after the script execution (written by the script)
 +  * the status of the picom task (written by the script)
 +<​code>​
 +$ tree -L 2 /​home/​michael/​hpcgateway/​runlog/​michael/​2018/​02/​21/​picom_4857/​steps/​3
 +/​home/​michael/​hpcgateway/​runlog/​michael/​2018/​02/​21/​picom_4857/​steps/​3
 +├── context.json
 +├── lastTasks
 +│   ├── task_0000.json
 +│   ├── task_0001.json
 +│   ├── task_0002.json
 +│   ├── task_0003.json
 +│   └── task_0004.json
 +├── nextTasks
 +│   ├── task_000.json
 +│   ├── task_001.json
 +│   ├── task_002.json
 +│   ├── task_003.json
 +│   └── task_004.json
 +└── status.json
 +</​code>​