I have a fan-out deployment with a DNR script that runs after each connection, therefore script runs once for each micro-deployment.Is it possible to run it only for one micro-deployment and not others?Macro-deployment DNR are not suitable, since the script does some heavy-duty processing of the manifest.
use Fcntl qw(:flock);open SELF, "< $0" or die "Unable to open self";unless(flock( SELF, LOCK_EX | LOCK_NB)) { print "We do not have a lock, bailing out"; exit 0; }