我想为 blobstore 文件创建拇指。 我使用代码:
字符串servingUrl = ImagesServiceFactory.getImagesService().getServingUrl( ServingUrlOptions.Builder.withBlobKey(new BlobKey(blobKey)) .imageSize(100) .secureUrl(假) );
它工作正常。但是,当我需要为每个请求创建许多赞时,我会遇到异常:
com.google.apphosting.api.DeadlineExceededException: This request (2b0af6acab1f5e18) started at 2012/10/11 21:53:57.444 UTC and was still executing at 2012/10/11 21:54:57.017 UTC.
也许有人可以解决这个问题。请帮忙!
最佳答案
任务队列是为此类长时间运行的任务而设计的,您应该研究一下。
https://developers.google.com/appengine/docs/java/taskqueue/overview?hl=en
关于java - GAE ImagesService().getServingUrl() 执行时间过长。 java ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12849948/