Fix callback consumer port to always be a URL, instead of sometimes an int.

This commit is contained in:
Chris Church
2014-12-03 20:49:08 -05:00
parent 36cf1e1e10
commit 3668b3c761
2 changed files with 2 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ class CallbackModule(object):
def _start_connection(self):
self.context = zmq.Context()
self.socket = self.context.socket(zmq.REQ)
self.socket.connect(str(self.callback_consumer_port))
self.socket.connect(self.callback_consumer_port)
def _post_job_event_queue_msg(self, event, event_data):
self.counter += 1

View File

@@ -493,7 +493,7 @@ else:
INTERNAL_API_URL = 'http://127.0.0.1:8000'
# ZeroMQ callback settings.
CALLBACK_CONSUMER_PORT = 5556
CALLBACK_CONSUMER_PORT = "tcp://127.0.0.1:5556"
CALLBACK_QUEUE_PORT = "ipc:///tmp/callback_receiver.ipc"
TASK_COMMAND_PORT = 6559