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.