If you're using a Maven-based project, by default implementation of the 
Maven Plugin only the app.yaml file (the application itself) is deployed.

If you need to deploy the *cron*, *queue *and *index *as well, you need to 
configure the deployables configuration with all the files
Please see this issue 
<https://github.com/GoogleCloudPlatform/app-maven-plugin/issues/143> where 
I posted a configuration example.

With the default configuration of the Maven plugin, your configuration will 
be something like this:

<deployables>
     <param>target/appengine-staging/app.yaml</param>
     <param>target/appengine-staging/cron.yaml</param>
     <param>target/appengine-staging/queue.yaml</param>
     <param>target/appengine-staging/index.yaml</param>
</deployables>


Il giorno martedì 14 marzo 2017 22:35:19 UTC+1, Daniel Garrido ha scritto:
>
> Hi all,
>
> I have tried to create a cron task using cron.xml file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cronentries>
>   <cron>
>     <url>/save</url>
>     <description>daily summary job</description>
>     <schedule>every 2 minutes</schedule>
>   </cron>
> </cronentries>
>
> When I deploy my app to app engine using Google Cloud Tools for Eclipse, 
> the cron task is not being created (it doesn't appear in the console).
>
> I tested the same example using the old Eclipse plugin and it worked.
>
> It seems that the cron.xml file is not being uploaded. Documentation (
> https://cloud.google.com/appengine/docs/standard/java/config/cron) says 
> that I have to upload cron tasks using appcfg. This is automatically 
> performed by the eclipse plugin.
>
> Finally, I used appcfg and the cron task was created.
>
> I am wondering if I can do the same using the new Google Cloud Tools in an 
> automatic way.
>
> Best regards,
> Daniel.
>

-- 
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/88acad68-eeb4-487a-92e3-315313fb4334%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to