atExit tooling
Darren Ball <[email protected]> Thu, 24 Sep 2015 12:17:52 -0400
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <CA+YPNhcdZ7DeH+_mvu2w_ADb-LpscTJt-Tu2bFqaCpB7PZ+71Q@mail.gmail.com> |
Hi All,
I recently attempted to add a cleanup of my test on exit.
I added the following:
class TestRunner:
def __init__(self):
log("Worker process initializing, instrumenting")
atexit.register(cleanup) <-----
This is now executed by each thread launched by the agent. I don't want
that, as this cleanup is iterating a deque for cleanup.
Is there a correct way to tool this so that it only happens once?
Any help is great help!
Thanks.
Darren
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use