DataONEorg / scythe

Scythe, the data citation harvester
Other
7 stars 2 forks source link

figure out how to run calls in parallel with keyring keys #18

Open jeanetteclark opened 3 years ago

jeanetteclark commented 3 years ago

Currently, when the scythe keyring, as set up by scythe_set_key is used for authentication, citation_search errors out when run in a parallel process because calls to the functions (eg: citation_search_scopus) that require keys have an interactive prompt that pops up asking for the password to unlock the key.

From the keyring docs: "Platforms typically have a default keyring, which is unlocked automatically when the user logs in. This keyring does not need to be unlocked explicitly." So, because we are using a separate keyring, it must be unlocked. I set my scythe keyring to never lock in my mac settings and keyring still always asks for a password. I've only been able to think of a couple ways to get around this, none of which are ideal.

IF we decide to keep parallel functionality, I think I am leaning towards solution 3, but that would mean that we probably wouldn't want to export the citationsearch* functions since we don't want to encourage users to pass plain text keys in their function code. Even then, I'm not so sure its a good idea.

At this point, given that parallel processing doesn't speed us up much anyway, I think I'd prefer just removing it, period.