We have an agent (agent B) that is called by another agent (agent A) to run on the server. Within agent B, it calls agents C and D.
There seems to be about a 10 second delay from when agents C and D complete to when agent B continues executing at the next line of code after the agent.run command. We determined this by placing a print statement at the last possible lines in agents C and D, and at the next line in agent B, and the log shows a 10 second delay between these print statements.
We have tried executing agents C and D with both agent.run and agent.runonserver, and have gotten the same result both times.
Any ideas? The strange thing here is this only happens in our production environment (on all servers we have tested) but not in our development environment. We have checked all server configuration settings we can think of, with no luck.
Our next step will be to extract the code from an agent and call it directly, but this will require us to have multiple versions of similar code (usually, agent B runs directly on the client, calling agents C and D to run on the server, but we implemented some new functionality that now has agent B running on the server.)
Thanks,
Brian