.. _how_does_it_work: How does it work ? =================== Operational chains are in Python. All treatments are launched on batch, on Caparmor. * Configuration file (see section before): this is the only file you will have to modify, it contains all the treatments. * To have the treatments list: * For MANGAE : **launch_mangae config_mangae.cfg --list** * For MENOR : **launch_menor config_menor.cfg --list** * To launch all available treaments: :: launch_mangae config_mangae.cfg (for MANGAE) launch_menor config_menor.cfg (for MENOR) * To launch only some treatments: :: launch_mangae config_mangae.cfg --only meteo launch_mangae config_mangae.cfg --only meteo,river * To launch all treatments, except one ore more: :: launch_mangae config_mangae.cfg --no meteo launch_mangae config_mangae.cfg --no meteo,river * To run operational chain from 01/01/2014 (date start) to 05/01/2014 (date end): :: launch_mangae config_mangae.cfg -s 2014-01-01,00:00 -e 2014-01-05,00:00 If no start and end date are specified, the start date is **default** specified in section **restart**, and the end date is **forecast_range** specified in section **run**. In this example,run will be from J-1 to J+4 (J is the current day): :: [restart] default = 'J-1,00h' :: [run] forecast_range = 'J+4,00h' * To kill a job, use option **--kill** (soft way using *qdel*) or **--slay** (hard way using *qdel -W force*) :: launch_mangae config_mangae.cfg --slay meteo launch_mangae config_mangae.cfg --slay all * To follow runs, check the file **f1-mangae.xml** or **f2-menor.xml** which will be created each time you run the chain. It contains warnings and errors, and will specify if treatments are OK or KO. * logs files are in **./logs**