FNNDSC / pman

A process management system written in python
MIT License
23 stars 33 forks source link

t_run_process_* #80

Closed rudolphpienaar closed 3 years ago

rudolphpienaar commented 6 years ago

Trace logic of t_run_process_container.

rudolphpienaar commented 6 years ago

If an execute (i.e. "run") command is passed to pman, the JSON payload is assumed to contain additional paragraphs, including container.

This is parsed by the methodName_parse() method when called from the initial entry point processPOST. At this level, the execution logic can fork to specific subclass.

When a status request is made, there is no container in the JSON. Hence the t_status_process method parses internal state to determine the container characteristics and branches accordingly.