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

Fail over to environmental storage URL config #125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

migstopheles
Copy link

ModelPool.createModel is always called with empty config, so always breaks when using non-default storage URLs e.g. HUBOT_MARKOV_STORAGE_URL=postgres://postgres:password@localhost:5432/hubot.

This change keeps the current behaviour, but fails over to look up the instance config, which is provided from env vars and passed into the instance in the module root

`ModelPool.createModel` is always called with empty config, so always breaks when using non-default storage URLs e.g. `HUBOT_MARKOV_STORAGE_URL=postgres://postgres:password@localhost:5432/hubot`.

This change keeps the current behaviour, but fails over to look up the instance config, which is provided from env vars and passed into the instance in the module root
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.

1 participant