Show More
@@ -1277,6 +1277,8 b' class Client(HasTraits):' | |||
|
1277 | 1277 | |
|
1278 | 1278 | md = self.metadata[msg_id] |
|
1279 | 1279 | md.update(self._extract_metadata(header, parent, rcontent)) |
|
1280 | if rec.get('received'): | |
|
1281 | md['received'] = rec['received'] | |
|
1280 | 1282 | md.update(iodict) |
|
1281 | 1283 | |
|
1282 | 1284 | if rcontent['status'] == 'ok': |
@@ -63,6 +63,7 b' def empty_record():' | |||
|
63 | 63 | 'started': None, |
|
64 | 64 | 'completed': None, |
|
65 | 65 | 'resubmitted': None, |
|
66 | 'received': None, | |
|
66 | 67 | 'result_header' : None, |
|
67 | 68 | 'result_content' : None, |
|
68 | 69 | 'result_buffers' : None, |
@@ -88,6 +89,7 b' def init_record(msg):' | |||
|
88 | 89 | 'started': None, |
|
89 | 90 | 'completed': None, |
|
90 | 91 | 'resubmitted': None, |
|
92 | 'received': None, | |
|
91 | 93 | 'result_header' : None, |
|
92 | 94 | 'result_content' : None, |
|
93 | 95 | 'result_buffers' : None, |
@@ -630,6 +632,7 b' class Hub(SessionFactory):' | |||
|
630 | 632 | result = { |
|
631 | 633 | 'result_header' : rheader, |
|
632 | 634 | 'result_content': msg['content'], |
|
635 | 'received': datetime.now(), | |
|
633 | 636 | 'started' : started, |
|
634 | 637 | 'completed' : completed |
|
635 | 638 | } |
@@ -732,7 +735,8 b' class Hub(SessionFactory):' | |||
|
732 | 735 | 'result_content': msg['content'], |
|
733 | 736 | 'started' : started, |
|
734 | 737 | 'completed' : completed, |
|
735 |
' |
|
|
738 | 'received' : datetime.now(), | |
|
739 | 'engine_uuid': engine_uuid, | |
|
736 | 740 | } |
|
737 | 741 | |
|
738 | 742 | result['result_buffers'] = msg['buffers'] |
@@ -1176,11 +1180,12 b' class Hub(SessionFactory):' | |||
|
1176 | 1180 | def _extract_record(self, rec): |
|
1177 | 1181 | """decompose a TaskRecord dict into subsection of reply for get_result""" |
|
1178 | 1182 | io_dict = {} |
|
1179 |
for key in 'pyin |
|
|
1183 | for key in ('pyin', 'pyout', 'pyerr', 'stdout', 'stderr'): | |
|
1180 | 1184 | io_dict[key] = rec[key] |
|
1181 | 1185 | content = { 'result_content': rec['result_content'], |
|
1182 | 1186 | 'header': rec['header'], |
|
1183 | 1187 | 'result_header' : rec['result_header'], |
|
1188 | 'received' : rec['received'], | |
|
1184 | 1189 | 'io' : io_dict, |
|
1185 | 1190 | } |
|
1186 | 1191 | if rec['result_buffers']: |
@@ -117,6 +117,7 b' class SQLiteDB(BaseDB):' | |||
|
117 | 117 | 'started', |
|
118 | 118 | 'completed', |
|
119 | 119 | 'resubmitted', |
|
120 | 'received', | |
|
120 | 121 | 'result_header' , |
|
121 | 122 | 'result_content' , |
|
122 | 123 | 'result_buffers' , |
@@ -138,6 +139,7 b' class SQLiteDB(BaseDB):' | |||
|
138 | 139 | 'started' : 'timestamp', |
|
139 | 140 | 'completed' : 'timestamp', |
|
140 | 141 | 'resubmitted' : 'timestamp', |
|
142 | 'received' : 'timestamp', | |
|
141 | 143 | 'result_header' : 'dict text', |
|
142 | 144 | 'result_content' : 'dict text', |
|
143 | 145 | 'result_buffers' : 'bufs blob', |
@@ -245,6 +247,7 b' class SQLiteDB(BaseDB):' | |||
|
245 | 247 | started timestamp, |
|
246 | 248 | completed timestamp, |
|
247 | 249 | resubmitted timestamp, |
|
250 | received timestamp, | |
|
248 | 251 | result_header dict text, |
|
249 | 252 | result_content dict text, |
|
250 | 253 | result_buffers bufs blob, |
General Comments 0
You need to be logged in to leave comments.
Login now