When I deploy my application which has multiple services, I can't see the
cron job to be registered in App Engine Console, despite following
directory hierarchy described in Configuration files overview
<https://cloud.google.com/appengine/docs/java/configuration-files> .
This is my cron.xml file, which I placed in my default service's WEB-INF
directory:
<?xml version="1.0" encoding="UTF-8"?><cronentries>
<cron>
<url>/cron</url>
<description>Execute scheduled tasks</description>
<schedule>every 5 minutes</schedule>
</cron></cronentries>
This is my default service's appengine-web.xml file:
<?xml version="1.0" encoding="utf-8"?><appengine-web-app
xmlns="http://appengine.google.com/ns/1.0">
<application>default</application>
<version>1</version>
<threadsafe>true</threadsafe>
<sessions-enabled>true</sessions-enabled>
<manual-scaling>
<instances>1</instances>
</manual-scaling></appengine-web-app>
My GAE application has 4 services, all defined in application.xml file:
<?xml version="1.0" encoding="UTF-8"?><application
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">
<display-name>modules-ear</display-name>
<module>
<web>
<web-uri>module-default-1.0</web-uri>
<context-root>module-default</context-root>
</web>
</module>
<module>
<web>
<web-uri>module-1-1.0</web-uri>
<context-root>module-1</context-root>
</web>
</module>
<!-- declared other modules likewise -->
<library-directory>lib</library-directory></application>
My project structure:
<https://lh3.googleusercontent.com/-R-5kUkoIFe0/WIT_7IDNrGI/AAAAAAAANcU/62CtiobIDqcIKjN_lp3oyJ6BaRwomojdgCLcB/s1600/structure.png>
Can you please tell me what am I doing wrong that my cron job doesn't run?
OP on stackoverflow
<http://stackoverflow.com/questions/41794627/cant-create-cron-job-in-google-app-engine-app-that-has-multiple-services>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/30d61c4c-c2fb-4b14-9bc0-60fdf0ce4482%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.