def setProgress(self, id, percent, msg=''):
        if isinstance(id, Task):
            id = id.id
        url = "tasks/%s/progress" % id
        body = {}
        body['percent'] = percent
        body['msg'] = msg
        body = json.dumps(body)
        resp = self.client.post(url, body=body,
                                headers={"Content-Type": "application/json"})
        return resp["body"]
dataset/ETHPy150Open iron-io/iron_worker_python/iron_worker.py/IronWorker.setProgress/original