[Promotion] HTTP Step retry behavior with polling #5092
-
|
Hello ! We're trying to implement an http step in our promotion tasks that do polling following this documentation but we would like to be able to call this http endpoint for example every 30seconds. In our tests we observed that the HTTP call was retried only when a new reconciliation happened which can take up to 5min. Is there something we're missing ? Or is this intended behavior ? For context we're using Kargo to promote non-kubernetes workloads and would like to use this http-step to check that the deployment has in fact happened, in a similar fashion to what Kargo is doing out of the box for ArgoCD Applications. But we're hitting this limitation on the promotion process and had to resort to moving this to the verification process which is also a bit sub-optimal for us :/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
You're not missing anything. Retry happens on next reconciliation. In general, our steps, including this one, don't do any internal waiting/polling. The reason for this is so steps that may need to poll for a very long time to find a definitive result aren't bogarting controller resources. I realize the problem this may pose for some use cases and am open to discussing what can possibly be done about it, but it's definitely not anything as simple as letting the step poll internally. |
Beta Was this translation helpful? Give feedback.
You're not missing anything. Retry happens on next reconciliation.
In general, our steps, including this one, don't do any internal waiting/polling. The reason for this is so steps that may need to poll for a very long time to find a definitive result aren't bogarting controller resources.
I realize the problem this may pose for some use cases and am open to discussing what can possibly be done about it, but it's definitely not anything as simple as letting the step poll internally.