Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Build healthcheck into index.js - #455

Merged
Twixes merged 3 commits into
masterfrom
index-healthcheck
Jun 4, 2021
Merged

Build healthcheck into index.js#455
Twixes merged 3 commits into
masterfrom
index-healthcheck

Conversation

@Twixes

@Twixes Twixes commented Jun 2, 2021

Copy link
Copy Markdown
Contributor

Changes

Closes #372. This way healthcheck is ran with the same executable as the usual mode of the plugin server: posthog-plugin-server --healtcheck.

Checklist

  • Updated Settings section in README.md, if settings are affected

@Twixes
Twixes requested a review from yakkomajuri June 2, 2021 22:36
Comment thread src/utils/utils.ts
status.error('😡', 'Redis error encountered! Enough of this, I quit!\n', error)
killGracefully()
} else {
status.error('🔴', 'Redis error encountered! Trying to reconnect...\n', error)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The only "nit" (it's not even that) I'd have is that this could tell me how many more retries to connect it'll perform. Might not even be super useful though.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll table that for now

@Twixes
Twixes merged commit 13ed91b into master Jun 4, 2021
@Twixes
Twixes deleted the index-healthcheck branch June 4, 2021 16:28
fuziontech pushed a commit to PostHog/posthog that referenced this pull request Oct 12, 2021
…r#455)

* Build healthcheck into index.js

* Add "Alternative modes" to README

* Fix uncaught reject in Sentry flush
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Official method to health check the plugin server when installed via yarn

2 participants