Syntax
newrelic.agent.shutdown_agent(timeout=None)
Forcibly shuts down the agent.
Description
Forcibly shut down the agent. The agent makes a final attempt to upload data to the collector.
Parameters
Parameter | Description |
---|---|
int or float | Optional, but highly recommended. The maximum length of time the caller waits for the agent to finish uploading data. If the timeout period ends before the agent finishes, the agent continues reporting data in the background, but the caller may forcibly kill the whole process and stop the upload. If no value is set or set to |
Return values
None.
Examples
With a three second timeout
newrelic.agent.shutdown_agent(timeout=3)
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicの とandドキュメント をご確認ください。