Ticket #90 (assigned defect)

Opened 5 years ago

Last modified 5 years ago

client sometimes leaves waiting_queue without a staffmember assigned

Reported by: winfried Owned by: winfried
Priority: P1 Milestone:
Component: Webchat Version: 2.0
Severity: normal Keywords: waiting_queue.py Exception staff staff_id
Cc:

Description

Very occasional the following exception occurs:

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/HelpIM/webchat/handler.py", line 110, in handlereq
    rv = servlet.handleRequest(req)
  File "/usr/lib/python2.3/site-packages/HelpIM/webchat/plugins/waiting_queue.py", line 91, in handleRequest
    raise Exception

Source-code snipped:

            # Store the staff-member that got this chat assigned
            jid = HelpIM.status.get(hash=self.hash)
            staff = HelpIM.users.user(userName=jid[1])
            if not hasattr(staff, "id"):
                # We have been too fast, the database couldn't catch up..
                # Give it a second and try again
                time.sleep(1)
                jid = HelpIM.status.get(hash=self.hash)
                staff = HelpIM.users.user(userName=jid[1])
                if not hasattr(staff, "id"):
                    # Something else is *very* wrong, make it an exception
                    raise Exception

The exact circumstances to reproduce this are unknown.

Impact: although it is rare, the impact is high if this occurs: the client is lost

Change History

Changed 5 years ago by winfried

  • status changed from new to assigned
Note: See TracTickets for help on using tickets.