@try_except(Exception)
    def run(self, task_list):
        task = self.poll(task_list)
        if not task:
            return

        activity_input = json.loads(task['input'])
        handler = InputHandler(activity_input['protocol'])
        action = handler.load(activity_input['body'])
        result = self.execute_action(action)
        if result['status'] == 'completed':
            self.client.respond_activity_task_completed(
                taskToken=self.task_token,
                result=json.dumps(result['result'])[:config.MAX_RESULT_SIZE])
        else:
            self.client.respond_activity_task_failed(
                taskToken=self.task_token,
                details=result['details'][:config.MAX_DETAIL_SIZE],
                reason=result['reason'][:config.MAX_REASON_SIZE])
Unquoting function for receiving a domain name in a URL.
dataset/ETHPy150Open KKBOX/mass/mass/scheduler/swf/__init__.py/SWFWorker.run--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/legacy_v2/contrib/floating_ip_dns.py/_unquote_domain