I am developing a plugin which holds a build in the queue, calls an API (and keeps calling if it doesn't return what's intended to), and then runs it only after the API returns the intended response. I am having problems with the last part.
Initially, I was using requirements, so it would add a requirement that's impossible to meet, and then removing it; but it doesn't seem to work, and I don't know how to proceed. Do I have to use promotions? Or do I have to write the logic in the agent part of the plugin? How does it interact with the queue?
Thank you in advance,