1. 16 Jun, 2023 1 commit
    • Vincent Pelletier's avatar
      MemcachedTool: Pool memcache.Client instances · 6bd5cf37
      Vincent Pelletier authored
      Unlike other database adaptors, memcache adaptors can be shared among
      transactions. So pool them in order to reduce the number of connections
      established to memcached servers. And as the connections handle
      thread-safety internally (by inheriting from threading.local), threads
      can share the same connection instance.
      Also, do not create a new connector each time we get disconnected, just
      reconnect.
      Also, memcached internally retries connection, so no need to retry it
      ourselves.
      Also, do not log when failing to update & delete entries in cache
      server: this is a racy cache, each read much be checked anyway, so
      failed writes are just business as usual.
      Also, document a bit more why we catch "any" exception happening during
      finish, and specify base exception class following python coding best
      practices.
      Also, use named constant for loggin levels for remaining log directives.
      Also, display traceback when catching a connection issue during
      __getitem__, as the original exception gets converted into a KeyError.
      6bd5cf37
  2. 12 Jul, 2022 1 commit
  3. 07 Jul, 2022 1 commit
    • Jérome Perrin's avatar
      AlarmTool: handle automatic solve with alarms owned by system user · 5ee598ce
      Jérome Perrin authored
      Business templates are installed by system user, which is a special
      user not returned by getWrappedOwner. Because of this, the "fixing
      problems or activating a disabled alarm is not allowed" error was
      raised when checking if the owner of the alarm has manage portal
      permission on the alarm.
      
      This switches the implementation to explicit creation of the user
      when user id is the system user, so that we have a user with the
      permission to solve the alarm.
      5ee598ce
  4. 11 Nov, 2021 3 commits
  5. 23 May, 2019 1 commit
  6. 25 Mar, 2019 1 commit
  7. 19 Feb, 2019 1 commit
  8. 04 Jan, 2019 1 commit
  9. 03 Jan, 2019 1 commit
  10. 12 Dec, 2018 1 commit
  11. 25 Sep, 2018 1 commit
  12. 18 Sep, 2018 1 commit
  13. 11 Sep, 2018 1 commit
  14. 28 Aug, 2018 25 commits