Module rok4_tools.pyr2pyr_utils.agent
Functions
def work(config: Dict[~KT, ~VT], split: int) ‑> None
-
Agent steps : make slabs' copy
Expects the configuration, the todo list and the optionnal last done slab name : if exists, work does not start from the beginning, but after the last copied slab. This file contains only the destination path of the last processed slab.
For each line in the todo list, a slab copy is done.
Args
config
:Dict
- PYR2PYR configuration
split
:int
- Split number
Raises
Exception
- Cannot get todo list
Exception
- Invalid todo list line
storageError
- Slab copy issue
MissingEnvironmentError
- Missing object storage informations