Package ganeti :: Package jqueue :: Module exec
[hide private]
[frames] | no frames]

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

Functions [hide private]
(int, string, json encoding of a list of dicts)
_GetMasterInfo()
Retrieve job id, lock file name and secret params from the master process
source code
 
RestorePrivateValueWrapping(json)
Wrap private values in JSON decoded structure.
source code
 
main() source code

Imports: contextlib, logging, os, signal, sys, time, mcpu, masterd, transport, serializer, utils, pathutils, livelock, _JobProcessor


Function Details [hide private]

_GetMasterInfo()

source code 

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)

RestorePrivateValueWrapping(json)

source code 

Wrap private values in JSON decoded structure.

Parameters:
  • json - the json-decoded value to protect.