Re: [google-appengine] Re: Deferred tasks in flexible environment

2016-10-03 Thread Randy Sugianto
I already solved it.

This is because the flexible environment does not support

builtins:
- deferred: on

on app.yaml.

You should mention this on the migration document or emit an error when
deploying. This is a really bad experience for those migrating with the
lack of proper documentation on this.

On Mon, Oct 3, 2016, 04:30 'Adam (Cloud Platform Support)' via Google App
Engine <google-appengine@googlegroups.com> wrote:

> Could you post an example app.yaml that shows your configuration? Also, if
> you are using 'google.appengine.ext.deferred.defer' to spawn your tasks,
> have you tested using the App Engine Task Queue API
> <https://cloud.google.com/appengine/docs/python/taskqueue/> directly?
>
>
> On Wednesday, September 28, 2016 at 1:41:56 PM UTC-4, Randy Sugianto wrote:
>
>
> Since I switched my App Engine app to a flexible environment, it seems
> that all tasks failed to run. I was surprised that all tasks failed. But
> when I open the logs, I got only this:
>
> 01:33:56.026POST500167 B4 msAppEngine-Google; (+
> http://code.google.com/appengine)/_ah/queue/deferred
>
> The status code is 500, but when I expand it, there is only this
> information inside:
>
> 0.1.0.2 - - [29/Sep/2016:01:33:56 +0800] "POST /_ah/queue/deferred
> HTTP/1.1" 500 167
> http://0.xxx.module-sync.x.appspot.com/_ah/background
> "AppEngine-Google; (+http://code.google.com/appengine)" "
> module-sync.xx.appspot.com" ms=4 cpu_ms=0 cpm_usd=1.8663e-8
> loading_request=0 instance=- app_engine_release=1.9.45 trace_id=-
> {
> metadata: {…}
> protoPayload: {…}
> insertId: "2016-09-28|10:34:00.180396-07|10.106.31.139|1292268011"
> log: "appengine.googleapis.com/request_log"
> httpRequest: {…}
> operation: {…}
> }
> There is no exception or stack trace or anything else that I usually see
> when I was using the standard environment.
>
> How can I troubleshoot this? Why are my deferred tasks not run?
>
> --
> 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/03062645-dc70-4c82-9907-5bcb2098e67f%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/03062645-dc70-4c82-9907-5bcb2098e67f%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAE9VMVc6D1Z-RxbcEEoCRHr7NyA-AUjTJKUc6S3H60efc9MNiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Deferred tasks in flexible environment

2016-09-28 Thread Randy Sugianto

Since I switched my App Engine app to a flexible environment, it seems that 
all tasks failed to run. I was surprised that all tasks failed. But when I 
open the logs, I got only this:

01:33:56.026POST500167 B4 msAppEngine-Google; 
(+http://code.google.com/appengine)/_ah/queue/deferred

The status code is 500, but when I expand it, there is only this 
information inside:

0.1.0.2 - - [29/Sep/2016:01:33:56 +0800] "POST /_ah/queue/deferred 
HTTP/1.1" 500 167 
http://0.xxx.module-sync.x.appspot.com/_ah/background 
"AppEngine-Google; (+http://code.google.com/appengine)" 
"module-sync.xx.appspot.com" ms=4 cpu_ms=0 cpm_usd=1.8663e-8 
loading_request=0 instance=- app_engine_release=1.9.45 trace_id=-
{
metadata: {…}  
protoPayload: {…}  
insertId: "2016-09-28|10:34:00.180396-07|10.106.31.139|1292268011"  
log: "appengine.googleapis.com/request_log"  
httpRequest: {…}  
operation: {…}  
}
There is no exception or stack trace or anything else that I usually see 
when I was using the standard environment.

How can I troubleshoot this? Why are my deferred tasks not run?

-- 
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/5c95805b-7936-416c-ba7d-3ae509d5876d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to deploy a flexible app to a preemptible VM?

2016-09-28 Thread Randy Sugianto
I just tried the Flexible version of app engine, and I like it because with 
0.05 USD per hour I can get 1 core and almost 4 GB of RAM, much higher than 
with a B1 instance (600MHz CPU and 128 MB of RAM only!).

Then I know that Google also offers Preemptible VMs with cost only 0.01 
USD/hour for the same spec! I guess my app engine app is very suitable to 
use preemptible VMs.

However I can't find a way to do so. Is there anything in the app.yaml file 
that I should put so that the app will be deployed to a preemptible VM 
instead of a normal one?

-- 
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/d514f296-fc74-47e9-a5ef-8acddbf14b91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.