Commits

jujorugo committed d47b39f

arregle errorsines

Comments (0)

Files changed (5)

             },
             "sessions" : {
                 "db" : 1,
-                "ttl" : 300
+                "ttl" : 300000
             }
         }
     },

nxweb/apps/admin/html/public/blender_test.py.zip

Binary file modified.

nxweb/apps/wmanws/__init__.py

             try:
                 message = websocket.receive()
             except:
-                raise WorkerCommunicationError()
+                debug("##connection closed .. error on communication")
+                worker_manager.offline(worker_token)
+                break
 
             if message is None:
                 debug("##connection closed by the worker")

nxweb/apps/wmanws/helpers.py

         try:
             self.websocket.close()
         except:
-            raise WorkerCommunicationError()
+            pass
+            #raise WorkerCommunicationError()
 
     def get_unfinished_tasks(self):
         return self.assigned_tasks

nxweb/apps/wmanws/worker_manager.py

         """Used to send the info to the monitors """
 
         def task_short_print(task_comp_key):
+
             pubkey_key, task_key = task_comp_key.split("+")
             task_metadata = task_dkvs.get_metadata(task_comp_key)
+            if task_metadata is None:
+                return ""
             task = task_metadata['program_key'].split("+")
             task.append(repr(task_metadata['counter']))
             #[user]-[program_name]-[task_number]