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

Arc 1444 keep probot running on stop #1661

Merged
merged 2 commits into from
Oct 12, 2022

Conversation

gxueatlassian
Copy link
Contributor

@gxueatlassian gxueatlassian commented Oct 12, 2022

What's in this PR?
Stop the stop the probot httpServer

Why
For each deployment, we don't want the existing stack to stop the probot (WORKER) http server from receiving healthcheck request, in case we want to rollback, we still need the existing stack (healthcheck endpoint) to function.

Added feature flags
N/A

Affected issues
ARC-1444

How has this been tested?
ddev
Multiple deploy to make sure it still works
rollback and make sure old stack works

However, before this change, I can't make old stack (health endpoint) cease functioning during rollback to verify my theory. I suspect it is due to healthcheck in worker group is quite special, the stack may still work even that healthcheck endpoint is broken. Too much micros assumption here, can't 100% prove anything. But my gut feeling tells me we should keep the server running.

Whats Next?
N/A

@gxueatlassian gxueatlassian requested a review from a team as a code owner October 12, 2022 06:07
@@ -24,8 +23,6 @@ export async function stop() {
return;
}
logger.info("Micros Lifecycle: Stopping queue processing");
// TODO: change this to `probot.close()` once we update probot to latest version
probot.httpServer?.close();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probot in worker? wtf

Copy link
Contributor

@joshkay10 joshkay10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice this works wonderfully with my 5 years ago PR probot-sweep-090922

@gxueatlassian gxueatlassian merged commit aec5aad into main Oct 12, 2022
@gxueatlassian gxueatlassian deleted the ARC-1444-keep-probot-running-on-stop branch October 12, 2022 21:59
@gxueatlassian
Copy link
Contributor Author

Nice this works wonderfully with my 5 years ago PR probot-sweep-090922

Haha didn't think of that, but yeah ! Actually me (ghe) is planning to review and merge your pr to kill probot, once we verify the new handler can process cloud web hook.

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.

None yet

3 participants