Platform: Mac High Sierra
Problem:
Running multiple gpg commands in a terminal in parallel fail with "gpg: decryption failed: No secret key".
One manifestation of this issue is opening multiple shells at the same time. I have a shortcut to spawn a series of tabs, and then they all load, it tries to source my .bashrc in each tab, which tries to run a gpg command, and none of the new shells are set up properly.
gpg-agent --version
gpg-agent (GnuPG/MacGPG2) 2.2.7
libgcrypt 1.8.2