<div dir="ltr">Hi Konrad,<div><br></div><div>You should be able to achieve this with a standard Perl DESTROY method, e.g.</div><div><br></div><div>sub DESTROY {</div><div> # do stuff</div><div>}</div><div><br></div><div>See <a href="http://perldoc.perl.org/perlobj.html#Destructors">http://perldoc.perl.org/perlobj.html#Destructors</a></div><div><br></div><div>Will</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 May 2015 at 23:23, Konrad Karczewski <span dir="ltr"><<a href="mailto:konradk@broadinstitute.org" target="_blank">konradk@broadinstitute.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<span><div>Hi VEP/Ensembl team,</div>
<div><br></div>
<div>At the moment, there exist subroutines to run something when the plugin is instantiated, and then for each annotation, but is there a way to run something once the job has finished? I'm using LOFTEE with MySQL now and DBD sometimes leaves connections open, which is leading to MySQL blocking. I'd love a way to run $db->disconnect() once it's all done. Would it be possible to get something like this into the BaseVepPlugin class? A simple optional subroutine that runs once when VEP finishes would be awesome to have.</div>
<div style="display:block">
<div><br></div>
<div>Thanks!</div><span class="HOEnZb"><font color="#888888">
<div>-Konrad</div>
</font></span></div></span><span></span>
</div>
<br>_______________________________________________<br>
Dev mailing list <a href="mailto:Dev@ensembl.org">Dev@ensembl.org</a><br>
Posting guidelines and subscribe/unsubscribe info: <a href="http://lists.ensembl.org/mailman/listinfo/dev" target="_blank">http://lists.ensembl.org/mailman/listinfo/dev</a><br>
Ensembl Blog: <a href="http://www.ensembl.info/" target="_blank">http://www.ensembl.info/</a><br>
<br></blockquote></div><br></div>