There's another doc which goes into more detail about these steps for the 
flexible runtime, Scheduling Jobs with cron.yaml 
<https://cloud.google.com/appengine/docs/flexible/java/scheduling-jobs-with-cron-yaml>
.

On Wednesday, March 8, 2017 at 6:30:22 AM UTC-5, Ben Rometsch wrote:
>
> Ah thats what I needed - that works now. Thanks. Feels like the 
> custom/flex VM documentation could do with being fleshed out a bit? 
>
> On Tuesday, 7 March 2017 23:47:15 UTC, Adam (Cloud Platform Support) wrote:
>>
>> I've tested this on an openjdk test app and it works fine, using a 
>> cron.yaml similar to yours (hitting an endpoint on the default 
>> version/service every 1 minute).
>>
>> Make sure that you're actually deploying your cron configuration with 
>> 'gcloud 
>> app deploy /path/to/cron.yaml'. Also make sure that you're targeting the 
>> correct version / service. If your endpoint exists on a different version / 
>> service that the default you'll need to specify the 'target: ' 
>> <https://cloud.google.com/appengine/docs/flexible/go/scheduling-jobs-with-cron-yaml#about>
>>  
>> definition in your cron.yaml.
>>
>> On Monday, March 6, 2017 at 5:44:08 PM UTC-5, Adam (Cloud Platform 
>> Support) wrote:
>>>
>>> The docs 
>>> <https://cloud.google.com/appengine/docs/flexible/java/dev-java-only> 
>>> do suggest that cron.yaml should work on the OpenJDK runtime. I'll 
>>> investigate this more and update the thread once I've finished testing. 
>>>
>>> On Sunday, March 5, 2017 at 4:03:23 AM UTC-5, Ben Rometsch wrote:
>>>>
>>>> Hmm I tried extending FROM gcr.io/google_appengine/openjdk but it's 
>>>> still not working. Any ideas? How does the cron.yaml get processed 
>>>> included 
>>>> into the Appengine backend?
>>>>
>>>> On Saturday, 4 March 2017 14:19:23 UTC, Ben Rometsch wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I'm running a custom Docker runtime on flexible VMs. I have an 
>>>>> cron.yaml file in my root dir that looks like:
>>>>>
>>>>> cron:
>>>>> - description: daily summary job
>>>>>   url: /tasks/test
>>>>>   schedule: every 1 minutes
>>>>>
>>>>> It's not being run. Is cron.yaml supported in custom Docker runtimes? 
>>>>> The documentation doesn't make any reference. 
>>>>>
>>>>> 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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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/1193d204-fc4a-4ba4-b203-17e983617cc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to