Data Science, Product Analytics, Simulation, Deep Dives, Programming.
assigned_agent is None: system.queue.add_request(self.customer_request) if system.logging: print('<%s> Request %d put in a queue' % (system.current_time, self.customer_request.id)) # if yes, start processing it else: assigned_agent.start_task(self.customer_request) self.customer_request.start_time