I am having problems trying to direct a cron job to a specific version of a module. The dispenser module contains the cron.xml file. Inside the file, I have:
<cron> <url>/_user/tags/deleteOld?page=0&pageSize=50</url> <description>deletes user old tags</description> <schedule>every saturday 21:00</schedule> <timezone>Europe/Helsinki</timezone> <target>v4-dot-batcher</target> </cron>
This works fine, and the cron job is correctly directed to the v4 batcher module version. Now, if I try to redirect this cron job to another module called mules:
<cron> <url>/_user/tags/deleteOld?page=0&pageSize=50</url> <description>deletes user old tags</description> <schedule>every saturday 21:00</schedule> <timezone>Europe/Helsinki</timezone> <target>v4-dot-mules</target> </cron>
This does not work anymore, since the request is always sent to the default version (called the test) of the module, and not to v4.
Is it because cron.xml is in the dispenser module or is this problem related to dispatch.xml? I have not installed anything related to the route "/ _user / tags / deleteOld" in the dispatch.xml of the mules module.
Looking at the logs, protoPayload contains:
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 }
The v4 configuration for mules looks like this:
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
Any ideas on this? Really appreciate!
source share