Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pyconductor/ConductorWorker.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ 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:
if self.taskClient.ackTask(polled['taskId'], self.worker_id):
self.execute(polled, exec_function)
self.execute(polled, exec_function)

def start(self, taskType, exec_function, wait, domain=None):
"""
Expand Down
8 changes: 0 additions & 8 deletions pyconductor/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down