Hi All,
I'm working with the standard environment and I have a Front End and a Service.
The service/module that receives messages from a PubSub Topic and write them to storage. This works and by using the console I can place message on the Topic and they get written to disk. What I'm now trying to achieve is being able to re-spin the messages on disk back into the topic from the front end.
The problem I have is that I have been unable to put a message onto the topic from the front end. If I wait for PubSub (with the get(ctx)) I get "Process terminated because the request deadline was exceeded. (Error code 123)" . Fair enough, so I thought to use the RunInBackground function within the runtime package. I get the following error "API error 2 (system: BACKEND_REQUIRED)" but I'm not sure why?
Does anyone have an example of sending a message to a PubSub topic from the AppEngine Standard Environment that I could utilise to work out what I've done wrong?
Or am I using the incorrect tool and should I be looking at using the TaskQueue and then using the TaskQueue to create the message and put it back on the topic (Seems a little like creating a message on a queue to create a message on a topic)?
Thanks, Dan