-
Notifications
You must be signed in to change notification settings - Fork 56
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
How to run boot scripts when Es connector is not initialised #66
Comments
@aquid - we received the following answer in the chat room:
|
@aquid
|
@wolfgang-s So the above piece of code goes before each boot scripts or just one boot scripts which run before all other and checks if elastic is up and running. Can't we do a refresh configuration for index too? Is it possible? |
This is a normal loopback boot module. Runs once before the rest of the boot modules. I'm using PM2 which restarts the node app on failure (when it takes more than 5 seconds). Actually almost the same as here: |
If we try to run a boot script now without our connector being initialised we get back an error saying Index doesn't exist.
here's the error message
cc @pulkitsinghal
The text was updated successfully, but these errors were encountered: