To update cron: *./appengine-java-sdk/bin/appcfg.sh update_cron [YOUR_APP_DIR]*
If you are using maven you can also do inside your project directory: *mvn appengine update_cron* After this you should be able to see a list of your cron jobs under App Engine -> Task Queues -> Cron Jobs and you will also be able to start them manually from there. Also, in the web.xml there is no mapping for /recache url. A cron job invokes an URL, using an HTTP GET request, so make sure you have a doGet () method in your RepsAITicketsRetrieval class. On Thursday, 1 June 2017 16:35:38 UTC+3, Shachar Grembek wrote: > > Hi Roxana, > > Thanks, I cannot see the cron jobs App Engine -> Task Queues -> Cron Jobs. > How do I run update_cron? > > Please find the web.xml: > > <?xml version="1.0" encoding="UTF-8"?> > <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" > xmlns="http://java.sun.com/xml/ns/javaee" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> > > <servlet> > <servlet-name>repsai-tickets-retrieval</servlet-name> > > <servlet-class>ai.reps.server.api.RepsAITicketsRetrieval</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>repsai-tickets-retrieval</servlet-name> > <url-pattern>/tasks/repsai/retrieve_tickets</url-pattern> > </servlet-mapping> > > <filter> > <filter-name>ObjectifyFilter</filter-name> > <filter-class>com.googlecode.objectify.ObjectifyFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>ObjectifyFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > <listener> > <listener-class>ai.reps.server.datalayer.OfyHelper</listener-class> > </listener> > </web-app> > > > On Thursday, June 1, 2017 at 4:29:39 PM UTC+3, Roxana Ioana Roman wrote: >> >> Are your cron jobs visible in App Engine -> Task Queues -> Cron Jobs? If >> not, you have to run update_cron. >> Can you add your web.xml and the Servlet which handles these cron jobs? >> Your second cron job does not have a <target> which means the job will run >> on the default service . >> >> Roxana >> >> On Thursday, 1 June 2017 01:35:41 UTC+3, Shachar Grembek wrote: >>> >>> Hi, >>> >>> I am running an App Engine Standard environment and trying to se cron >>> scheduled tasks. I've created the cron.xml (alongside the web.xml) and went >>> by the guide in the following link: >>> https://cloud.google.com/appengine/docs/standard/java/config/cron >>> However, I don't see the cron start (both in the logs and in the console >>> App Engine -> Task Queues -> Cron Jobs) >>> >>> Can u please advise what might I be doing wrong? >>> >>> cron.xml: >>> >>> <?xml version="1.0" encoding="UTF-8"?> >>> <cronentries> >>> <cron> >>> <url>/tasks/repsai/retrieve_tickets</url> >>> <target>beta</target> >>> <description>daily summary job</description> >>> <schedule>every 2 minutes</schedule> >>> </cron> >>> <cron> >>> <url>/recache</url> >>> <description>Repopulate the cache every 2 minutes</description> >>> <schedule>every 2 minutes</schedule> >>> </cron> >>> </cronentries> >>> >>> >>> Thanks >>> >> -- 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/5d3b7fcc-41e6-4e28-826f-4a3ce2b01e98%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
