Java 将Google AppEngine cron作业路由到模块的特定版本
我在尝试将cron作业路由到模块的特定版本时遇到问题。模块批处理程序包含cron.xml文件。在文件中,我有:Java 将Google AppEngine cron作业路由到模块的特定版本,java,xml,google-app-engine,cron,Java,Xml,Google App Engine,Cron,我在尝试将cron作业路由到模块的特定版本时遇到问题。模块批处理程序包含cron.xml文件。在文件中,我有: <cron> <url>/_user/tags/deleteOld?page=0&pageSize=50</url> <description>deletes user's old tags</description> <schedule>every saturday 21:
<cron>
<url>/_user/tags/deleteOld?page=0&pageSize=50</url>
<description>deletes user's old tags</description>
<schedule>every saturday 21:00</schedule>
<timezone>Europe/Helsinki</timezone>
<target>v4-dot-batcher</target>
</cron>
MULE v4的配置如下所示:
runtime: java7
threadsafe: true
instance_class: F4
inbound_services:
- warmup
handlers:
- url: '/.*'
script: unused
secure: always
automatic_scaling:
min_idle_instances: automatic
max_idle_instances: 1
min_pending_latency: 5s
max_pending_latency: 15s
max_concurrent_requests: 10
有什么想法吗?非常感谢 您的
v4 dot mules
版本是否至少运行并处理了部分流量?附带问题:为什么要尝试路由到该服务的特定版本?附带注释:cron配置是应用程序级别的配置,而不是服务级别的配置,请参阅。因此,从执行角度看,哪个服务包含该配置并不重要(从部署角度看,这可能很重要-简单地部署包含cron配置的服务可能不会更新cron作业,它们可能需要显式更新)。是的,它正在运行。我正在尝试路由以进行测试。您的dispatch.xml
文件中有什么内容?(顺便说一句,这也是一个应用程序级配置)
protoPayload: {
@type: "type.googleapis.com/google.appengine.logging.v1.RequestLog"
versionId: "test"
startTime: "2017-05-29T16:45:00.628537Z"
endTime: "2017-05-29T16:45:00.642901Z"
latency: "0.014364s"
megaCycles: "11"
method: "GET"
resource: "/_user/tags/deleteOld?page=0&pageSize=50"
httpVersion: "HTTP/1.1"
status: 404
responseSize: "234"
userAgent: "AppEngine-Google; (+http://code.google.com/appengine)"
urlMapEntry: "unused"
host: "v4-dot-mules.testapp.appspot.com"
taskQueueName: "__cron"
finished: true
}
runtime: java7
threadsafe: true
instance_class: F4
inbound_services:
- warmup
handlers:
- url: '/.*'
script: unused
secure: always
automatic_scaling:
min_idle_instances: automatic
max_idle_instances: 1
min_pending_latency: 5s
max_pending_latency: 15s
max_concurrent_requests: 10