def ready(self):
    return ((self.payload is not None) and (self.ticket is not None) and (self.worker_id is not None))
def ready(self):
    return ((self.payload is not None) and (self.ticket is not None) and (self.worker_id is not None))