Hi All. I've managed to create a consumer pipeline...
# general
m
Hi All. I've managed to create a consumer pipeline that creates the contract, publishes the contract to the broker, calls a webhook for the provider pipeline to be ran and the can-i-deploy step checking the broker status. However the webhook succeeds when it gets a 201 and moves on to the can-i-deploy job before the provider has chance to run its pipeline and upload a potential new contract to the broker. What would be the best approach here? Is there a way to wait for the provider pipeline to run before the can-i-deploy check is ran? Thanks
t
There’s a retry-while-unknown flag for can-i-deploy, which would make the pipeline wait until it got a clear answer from the broker. This might work for you (I forget what the flag is called, but it’s in the docs / CLI usage).
b
try a retry mechanism to poll the broker, such as : • --retry-while-unknown=60 • --retry-interval=10 (tuned with the values that you need)
💯 1
m
Perfect thanks guys
👍 1