def clean_up(self, sess):
     # This is to make sure that only one server cleans up sessions
     if socket.gethostname() != 'fas01.phx2.fedoraproject.org':
         return
     result = SessionTable.delete(
         SessionTable.c.expiration_time.__lt__(
             datetime.datetime.now())).execute()
 def clean_up(self, sess):
     # This is to make sure that only one server cleans up sessions
     if socket.gethostname() != 'fas01.phx2.fedoraproject.org':
         return
     result = SessionTable.delete(
         SessionTable.c.expiration_time.__lt__(datetime.datetime.now())
         ).execute()
Exemple #3
0
 def clean_up(self, sess):
     result = SessionTable.delete(
         SessionTable.c.expiration_time.__lt__(datetime.datetime.now())
         ).execute()
Exemple #4
0
 def clean_up(self, sess):
     result = SessionTable.delete(
         SessionTable.c.expiration_time.__lt__(
             datetime.datetime.now())).execute()