diff --git a/polyglot-clients/python/conductor/ConductorWorker.py b/polyglot-clients/python/conductor/ConductorWorker.py index 9cae134f59..6c4f13790f 100644 --- a/polyglot-clients/python/conductor/ConductorWorker.py +++ b/polyglot-clients/python/conductor/ConductorWorker.py @@ -129,7 +129,6 @@ def poll_and_execute(self, taskType, exec_function, domain=None): time.sleep(float(self.polling_interval)) polled = self.taskClient.pollForTask(taskType, self.worker_id, domain) if polled is not None: - self.taskClient.ackTask(polled['taskId'], self.worker_id) self.execute(polled, exec_function) def start(self, taskType, exec_function, wait, domain=None): diff --git a/polyglot-clients/python/conductor/conductor.py b/polyglot-clients/python/conductor/conductor.py index 603e9d06f2..ca727347d7 100644 --- a/polyglot-clients/python/conductor/conductor.py +++ b/polyglot-clients/python/conductor/conductor.py @@ -213,14 +213,6 @@ def pollForBatch(self, taskType, count, timeout, workerid, domain=None): print('Error while polling ' + str(err)) return None - def ackTask(self, taskId, workerid): - url = self.makeUrl('{}/ack', taskId) - params = {} - params['workerid'] = workerid - headers = {'Accept': 'application/json'} - value = self.post(url, params, None, headers) - return value in ['true', True] - def getTasksInQueue(self, taskName): url = self.makeUrl('queue/{}', taskName) return self.get(url) diff --git a/polyglot-clients/python/test_conductor.py b/polyglot-clients/python/test_conductor.py index 0130f86557..2924bdea8f 100644 --- a/polyglot-clients/python/test_conductor.py +++ b/polyglot-clients/python/test_conductor.py @@ -30,16 +30,6 @@ def test_pollForBatch(requests_get): params={'workerid': 'barWorker', 'count': 20, 'timeout': 100, 'domain': 'a_domain'}) -@mock.patch('requests.post') -def test_ackTask(requests_post): - task_client = TaskClient('base') - task_client.ackTask('42', 'myWorker') - requests_post.assert_called_with( - 'base/tasks/42/ack', - headers={'Content-Type': 'application/json', 'Accept': 'application/json'}, - params={'workerid': 'myWorker'}) - - @mock.patch('requests.post') def test_updateTask(post): task_client = TaskClient('base')