ed19
8
@vomspace’s idea is a good one I think, though the execution depends on your needs. You could use the list action, then trigger another workflow when “item before change’s api key is not item now’s api key”.
I have a similar use case with the google drive api, so am storing keys in db items and have added an “expires at” date field to each. This means that when I run backend workflows I can search for the latest API key that hasn’t expired, and if empty only then refresh the token.
Thinking about it a bit more and taking the above into consideration, I’m not sure there’s any reason for you to be running 2 separate schedule actions. If you just conditionally grab/refresh your api keys in the same workflow as the one that updates your subs, you won’t run into any issues with timing and won’t need to revert to recursive scheduling.