Updated backend status during call
authorSapan Bhatia <gwsapan@gmail.com>
Tue, 29 Apr 2014 04:42:40 +0000 (00:42 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Tue, 29 Apr 2014 04:42:40 +0000 (00:42 -0400)
planetstack/observer/syncstep.py

index d3a0775..bd9ebf1 100644 (file)
@@ -61,6 +61,7 @@ class SyncStep:
                     self.check_dependencies(o,f) # Raises exception if failed
                 self.sync_record(o)
                 o.enacted = datetime.now() # Is this the same timezone? XXX
+                o.backend_status = "OK") 
                 o.save(update_fields=['enacted'])
             except Exception,e:
                 try: