[google-appengine] Re: Background Threads Prevent Shutting Down of Basic Scaling Modules

2016-12-08 Thread 'Jordan (Cloud Platform Support)' via Google App Engine
App Engine Basic scaling makes use of Dynamic Instances. Dynamic instances turn off when they are not being used At All.

[google-appengine] Re: Background Threads Prevent Shutting Down of Basic Scaling Modules

2016-12-09 Thread Tolga Tanrıverdi
Yes Jordan you're right the part that keeps my instance open is: (I've removed the polling queue code and sleep part ,the instance shutdown successfully) Thread.sleep(MILLISECONDS_TO_WAIT_WHEN_NO_TASKS_LEASED); which sleeps the thread for 2.5 seconds if there is nothing in the queue then poll

[google-appengine] Re: Background Threads Prevent Shutting Down of Basic Scaling Modules

2016-12-09 Thread 'Jordan (Cloud Platform Support)' via Google App Engine
The idea of PULL queues is to have a worker always alive to continuously check the PULL queue to see if there are any new tasks for it. This design relies on you always having an instance running your worker's 'while' loop to continuously poll the PULL queue at time intervals. Since you instead