Revision 0b51f509 snf-image-host/helper-monitor.py
b/snf-image-host/helper-monitor.py | ||
---|---|---|
27 | 27 |
PROGNAME = os.path.basename(sys.argv[0]) |
28 | 28 |
STDERR_MAXLINES = 10 |
29 | 29 |
MAXLINES = 100 |
30 |
MSG_TYPE = 'image-helper' |
|
30 | 31 |
|
31 | 32 |
PROTOCOL = { |
32 | 33 |
'TASK_START': ('task-start', 'task'), |
... | ... | |
45 | 46 |
subtype, value_name = PROTOCOL[msg_type] |
46 | 47 |
|
47 | 48 |
msg = {} |
48 |
msg['type'] = 'image-helper'
|
|
49 |
msg['type'] = MSG_TYPE
|
|
49 | 50 |
msg['subtype'] = subtype |
50 | 51 |
msg[value_name] = value |
51 | 52 |
msg['timestamp'] = time.time() |
Also available in: Unified diff