def shutdown_agent(timeout=None): agent = newrelic.core.agent.agent_instance() agent.shutdown_agent(timeout)
def force_agent_shutdown(*args, **kwargs): shutdown_agent()