-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(webhooks): addresses issue 3450 - introduce a delay before polling webhook #2984
fix(webhooks): addresses issue 3450 - introduce a delay before polling webhook #2984
Conversation
if (!missing.empty) { | ||
throw new IllegalStateException("Missing required parameter${missing.size() > 1 ? 's' : ''} '${missing.join('\', \'')}'") | ||
} | ||
StageData stageData = stage.mapTo(StageData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did some minor refactor here to bring into ~2018... :)
stageData
and no more throws from here -> return TERMINAL instead
cc: @neelimamanubolu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good---I think the ability to customize statuses to retry on is very useful. I'm less sold on the ability to add a custom wait time before polling, but the implementation seems reasonable.
Just a few comments inline.
orca-webhook/src/main/groovy/com/netflix/spinnaker/orca/webhook/tasks/MonitorWebhookTask.groovy
Outdated
Show resolved
Hide resolved
orca-webhook/src/main/groovy/com/netflix/spinnaker/orca/webhook/tasks/MonitorWebhookTask.groovy
Show resolved
Hide resolved
...-webhook/src/test/groovy/com/netflix/spinnaker/orca/webhook/pipeline/WebhookStageSpec.groovy
Show resolved
Hide resolved
…g wehook Add additional parameters to the monitored webhook to allow: 1. waiting some number of seconds before polling starts 2. retrying on specific HTTP status codes Still needs deck counterpart see [3450](spinnaker/spinnaker#3450)
4faf015
to
4b589c9
Compare
…g webhook Add additional parameters to the monitored webhook to allow: * waiting some number of seconds before polling starts * retrying on specific HTTP status codes see spinnaker#3450 orca counterpart (spinnaker/orca#2984)
…g webhook (#7144) * fix(webhooks): addresses issue 3450 - introduce a delay before polling webhook Add additional parameters to the monitored webhook to allow: * waiting some number of seconds before polling starts * retrying on specific HTTP status codes see #3450 orca counterpart (spinnaker/orca#2984)
Add additional parameters to the monitored webhook to allow:
Still needs deck counterpart
see 3450