Long running process - how to provide progress?

44 views
Skip to first unread message

David Brophy

unread,
Jan 23, 2018, 3:24:27 PM1/23/18
to Google App Engine
One of the functions of my App Engine (Flexible) app is rather long running - perhaps 30 seconds or so, comprising of various download and compilation steps. I would like to provide feedback to the user as a series of log messages.

This can be accomplished in various ways:

1) Open a WebScoket connection and stream the results to a javascript app.
2) Open a standard HTTP connection and stream the results unbuffered. Read the results as a stream using javascript.

It seems WebSockets aren't supported (I'm on the alpha waiting list). I've also not been able to get method #2 working either... It works fine in my local test, but when deployed, it seems the App Engine system buffers all HTTP connections before sending... Or perhaps that's a side effect of switching from HTTP to HTTPS?

Any ideas on how I can accomplish this without resorting to polling?

George (Cloud Platform Support)

unread,
Jan 23, 2018, 10:57:20 PM1/23/18
to Google App Engine
For security reasons, the connections types you mention are not supported. Still, you can get the logging information you need by connecting to the instance, as detailed in the "Writing Application Logs" online document. Point 6 of the "Connecting to the instance" sub-chapter might prove of particular interest here, as it deals with the listing of logging information for your application. 

Concerning coding-related issues, you are better served publishing in forums such as stackoverflow, where specialized programmers are ready to help. 
Reply all
Reply to author
Forward
0 new messages