Module rok4_tools.joincache_utils.agent

Functions

def work(config: Dict[~KT, ~VT], split: int) ‑> None

Agent steps : make links or merge images

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.

A line in the todo list is either a slab's copy from pyramid format to work format, or a merge of stacking slabs or a slab's copy from work format to pyramid format.

Args

config : Dict
JOINCACHE configuration
split : int
Split number

Raises

Exception
Cannot get todo list
Exception
Cannot load the input or output pyramid
Exception
Cannot process todo lists
Exception
System command raises an error