Permalink
Browse files

Fix for expired memcache value

  • Loading branch information...
1 parent 4e4f29f commit 6cc321418ce729e996d884eca9d742058fc41d8e @RichardWallis RichardWallis committed Jan 6, 2017
Showing with 5 additions and 0 deletions.
  1. +5 −0 sdoapp.py
View
@@ -188,6 +188,11 @@ def tick(): #Keep memcache values fresh so they don't expire
log.debug("[%s] End of waiting !!!!!!!!!!!" % (getInstanceId(short=True)))
tick()
systarttime = memcache.get("SysStart")
+
+ if(not systarttime): #Occationally memcache will loose the value and result in systarttime becomming Null value
+ systarttime = datetime.datetime.utcnow()
+ tick()
+
setmodiftime(systarttime)
#################################################

0 comments on commit 6cc3214

Please sign in to comment.