Ejemplo n.º 1
0
 def handle(self, *args, **options):
     msg = ReplicationInitQuery()
     headers = {
     'correlation_id': uuid(),
     'sequence': 0,
     'date': dpn_strftime(datetime.now())
     }
     msg.set_headers(**headers)
     body = {
         'message_name': 'replication-init-query',
         'replication_size': 4502,
         'protocol': ['https', 'rsync'],
         'dpn_object_id': uuid()
     }
     msg.set_body(**body)
     msg.send(DPN_BROADCAST_KEY)