Cron.xml not picked up - where do I start looking?

66 views
Skip to first unread message

Torbjørn Smørgrav

unread,
May 2, 2017, 3:36:05 PM5/2/17
to Google App Engine

I'm trying to get cron jobs working.


The /status url that I want to hit in the cron job is configured and working. From web.xml:


<servlet>
<servlet-name>StatusServlet</servlet-name>
<servlet-class>my.package.StatusServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>StatusServlet</servlet-name>
<url-pattern>/status</url-pattern>
</servlet-mapping>

From the debugger you can see that cron.xml is uploaded:



But I don't see anything in the logs... the servlet is never called.

What am I missing?



Nick (Cloud Platform Support)

unread,
May 3, 2017, 6:13:19 PM5/3/17
to Google App Engine
Hey Torbjørn,

While cron.xml may have been part of the deployed application folder, that doesn't mean that you've run the command to deploy the cron settings. Could you try to run 

mvn appengine:deployCron

And report back the results?

I'll just note here while I can, that in general this forum is not meant for specific-issue technical support. You should post to Stack Overflow with questions like these, as we monitor our tags there and there is also a much larger user-base able to support your question.

Cheers,

Nick
Cloud Platform Community Support

Torbjørn Smørgrav

unread,
May 6, 2017, 2:55:33 PM5/6/17
to Google App Engine
Thanks Nick,

I'll stick to Stack Overflow for these questions going forward.

My maven plugin version did not have the deployCron goal. But I learned just now that I would have to(?) use appcfg.sh update or updatecron to do this.

Cheers,
-T


Nick (Cloud Platform Support)

unread,
May 8, 2017, 4:33:29 PM5/8/17
to Google App Engine
Hey Torbjørn, 

Which app engine maven plugin are you using? Could you post the section from your pom.xml? Does it look like the documentation?


Cheers,

Nick
Cloud Platform Community Support

Reply all
Reply to author
Forward
0 new messages