Esempio n. 1
0
 def to_local_cache(self):
     if self.mode == "monkey":
         return
     for record in list(self.flow.exe_records.keys()):
         if self.flow.exe_records[record]["status"] == RecordsStatus.DONE:
             FileUtils.add_to_pickle(self.cache_file_name,
                                     self.flow.exe_records[record])
             for k in list(self.flow.exe_records[record].keys()):
                 if k != "status":
                     del self.flow.exe_records[record][k]