Skip to content
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

Merged
merged 2 commits into from
Jun 24, 2019

Conversation

marchello2000
Copy link
Contributor

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

if (!missing.empty) {
throw new IllegalStateException("Missing required parameter${missing.size() > 1 ? 's' : ''} '${missing.join('\', \'')}'")
}
StageData stageData = stage.mapTo(StageData)
Copy link
Contributor Author

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

@marchello2000
Copy link
Contributor Author

cc: @neelimamanubolu

Copy link
Contributor

@ezimanyi ezimanyi left a 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.

…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)
@marchello2000 marchello2000 merged commit ac8f4eb into spinnaker:master Jun 24, 2019
marchello2000 added a commit to marchello2000/deck that referenced this pull request Jun 24, 2019
…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)
marchello2000 added a commit to spinnaker/deck that referenced this pull request Jun 24, 2019
…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)
@marchello2000 marchello2000 deleted the mark/spin-issue-3450 branch November 1, 2019 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants