Issue while accessing all requests(simple and tasks requests) from app-engine flex

37 views
Skip to first unread message

Mohammad Ashraf

unread,
Aug 9, 2018, 9:41:52 AM8/9/18
to Google App Engine
Hi,

Today I got very abnormal behavior not processing any requests and taking much time to process it, in logs most requests' code is executed with in time but response is very slow. Earlier every requests are running fast and getting response in low time.

Why for every requests running in long time(continues running no response in browser and still running). When I checked logs no logs are coming.

I have multiple App Engine Queues  in Cloud Tasks, but some  times some tasks are taking 3600 seconds even though my code execution completes within 10 seconds and it is captured in GCP logs with code 504. 

Can anyone explain this why it is happening ? 

Please refer attached screenshot of logs.
log1.PNG

George (Cloud Platform Support)

unread,
Aug 9, 2018, 1:27:14 PM8/9/18
to Google App Engine
Hello Mohammad, 

504 Gateway Timeout indicates a DEADLINE_EXCEEDED error. In such a case, the deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. The Task Queue service is designed for asynchronous work. It does not provide strong guarantees around the timing of task delivery and is therefore unsuitable for interactive applications where a user is waiting for the result.

When did you first notice such unexpected delays? Do you notice such delays for all requests, without exception, or only for a subset of the requests? Do the delays correlate with certain tasks or certain situations in your code? 

You have correctly opened an identical issue in the Public Tracker. It is better to follow the issue in the Public Issue Tracker, rather than here; this group is meant primarily for general discussions and voicing of opinions related to the Cloud Platform. Technical issues are better covered and treated in the Issue Tracker. 
Reply all
Reply to author
Forward
0 new messages