Module exec
source code
Module implementing executing of a job as a separate process
The complete protocol of initializing a job is described in the
haskell module Ganeti.Query.Exec
(int, string, json encoding of a list of dicts)
|
|
|
|
|
|
Imports:
contextlib,
logging,
os,
signal,
sys,
time,
mcpu,
masterd,
transport,
serializer,
utils,
pathutils,
livelock,
_JobProcessor,
JobQueue
Retrieve job id, lock file name and secret params from the master
process
This also closes standard input/output
- Returns: (int, string, json encoding of a list of dicts)
|
Wrap private values in JSON decoded structure.
- Parameters:
json - the json-decoded value to protect.
|