Skip to content

Safe deployment polling and other minor fixes#1330

Merged
leo merged 4 commits into
canaryfrom
polling-fixes
Apr 26, 2018
Merged

Safe deployment polling and other minor fixes#1330
leo merged 4 commits into
canaryfrom
polling-fixes

Conversation

@javivelasco

Copy link
Copy Markdown
Member
  • Instead of getting the first deployment readyState from in the deployment state polling function and then diff, initialize the state with the value that we already have from the deployment creation. This eliminates the chances of getting stuck because of a state update between the deployment creation and the first polling function call.
  • Add 5 seconds of sleep time right after we detect a state change in the deployment from the polling function. This allows the stream to keep receiving events 5 seconds after the deployment is detected as ready.
  • Remove a validation rule that forces to have a fallback dest in path alias rules json file.
  • Ignore errors coming from the deployment event stream.

@javivelasco javivelasco requested review from leo and rauchg April 26, 2018 18:04
@leo leo merged commit 69a7d91 into canary Apr 26, 2018
@leo leo deleted the polling-fixes branch April 26, 2018 18:07
leo pushed a commit that referenced this pull request May 15, 2018
* Initialize polling function from args

* Remove rule of having a mandatory dest field in path alias rules

* Wait 5 seconds after getting the deployment ready

* Ignore errors coming from events stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants