I have created a Geoprocessing service that is hosted on a server inside our firewall (ArcGIS Enterprise 10.6). The GP service adds messages via arcpy.AddMessage("msg").
Locally, I import the toolbox via arcpy.ImportToolbox("https://...") and execute the service. Everything runs to completion, but I would like to receive messages back from the service to my local python script.
Calling arcpy.GetMessages() from my local python script only returns local messages.
Is there anyway to get the messages from the server-side GP service?
Edit: when I run the GP service from ArcCatalog (as a tool) it returns all of the remote messages.