Subversion Repositories SmartDukaan

Rev

Rev 13171 | Rev 22395 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13171 Rev 13202
Line 105... Line 105...
105
    def send(self):
105
    def send(self):
106
        
106
        
107
        if self.count > 100:
107
        if self.count > 100:
108
            print str(self.count)
108
            print str(self.count)
109
            print "Number of failed attempts is more than 100. Exiting"
109
            print "Number of failed attempts is more than 100. Exiting"
110
            sys.exit()
110
            #sys.exit()
111
            
111
            
112
        for smsId in self.exceptionCount.keys() :
112
        for smsId in self.exceptionCount.keys() :
113
            if self.exceptionCount[smsId] > 100:
113
            if self.exceptionCount[smsId] > 100:
114
                print "Number of exceptions for sms id : " + str(smsId) + " is : " + str(self.exceptionCount[smsId]) + ". Exiting"
114
                print "Number of exceptions for sms id : " + str(smsId) + " is : " + str(self.exceptionCount[smsId]) + ". Exiting"
115
                sys.exit()
115
                #sys.exit()
116
        
116
        
117
        print "Despatch stared at ", datetime.datetime.now()
117
        print "Despatch stared at ", datetime.datetime.now()
118
        helperServiceClient = HelperClient()
118
        helperServiceClient = HelperClient()
119
        helper_client = helperServiceClient.get_client()
119
        helper_client = helperServiceClient.get_client()
120
        
120