cron - Java App engine backend shuts down abruptly, how to resume work? -


i have cron job runs every 30mins , queues task executed on dynamic backend (b2). backend loops , work, sleeps few minutes , repeats work till complete job on after few hours, after backend shuts down. (till backend running, no new task actioned)

now 2 days in row, have seen backend stop abruptly (after 1.5hrs) familiar "process terminated because backend took long shutdown.". have searched through forums not identify why backend shuts down (apart theoretical list of reasons appengine doc provides). have checked ds/memcache operations, memory , looks normal. upgraded backend b1 b2, no luck.

q1. know how debug issue further?

q2. after wish job should completed. if register shutdown hook lifecyclemanager.getinstance().setshutdownhook(), way ensure job resumed (considering cron job still 29minutes away next execution, , want job stuff every 2 minutes)

yes same has happened me. have backend uses constant memory , cpu. apengine shuts down periodically, after 15min before that. docs may shut down without explanation, notify backend , shut down. supposed handle gracefully means can work chunks , restart work. if you. ant divide work in chunks dont use backends, use compute engine instance.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -