Exemplo n.º 1
0
    def _run_task(queue_name, task_name):
        request = taskqueue_service_pb.TaskQueueForceRunRequest()
        request.set_queue_name(queue_name)
        request.set_task_name(task_name)

        response = taskqueue_service_pb.TaskQueueForceRunResponse()
        apiproxy_stub_map.MakeSyncCall('taskqueue', 'ForceRun', request,
                                       response)
        return response.result()
Exemplo n.º 2
0
    def force_run(self, app_id, http_data):
        """

    Args:
      app_id: The application ID.
      http_data: The payload containing the protocol buffer request.
    Returns:
      A tuple of a encoded response, error code, and error detail.
    """
        # TODO implement.
        request = taskqueue_service_pb.TaskQueueForceRunRequest(http_data)
        response = taskqueue_service_pb.TaskQueueForceRunResponse()
        return (response.Encode(), 0, "")