8000 [recorder] Catch more startup errors #6179 by kellerza · Pull Request #6192 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[recorder] Catch more startup errors #6179 #6192

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

Merged
merged 2 commits into from
Mar 3, 2017

Conversation

kellerza
Copy link
Member

Description:
I know generally general "Exceptions" are frowned upon, but there is no elegant way of finding all errors that could be thrown by this.

This specific Issue & thread here was because of mysqlcleint not being available, it generated an ImportError

ImportError: No module named 'MySQLdb'

The new behavior will retry for 100 seconds, then raise a persistent error. Meanwhile other tasks waiting on db_ready will timeout and raise an exception after 3xWait period - 15 seconds will be the new default from #6167

Related issue (if applicable): fixes #6179

Checklist:

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@mention-bot
Copy link

@kellerza, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rhooper, @balloob and @armills to be potential reviewers.

@balloob
Copy link
Member
balloob commented Feb 24, 2017

Proposal to replace this PR with #6196

@balloob balloob mentioned this pull request Feb 24, 2017
2 tasks
@balloob balloob merged commit fbd0bf7 into home-assistant:dev Mar 3, 2017
@balloob
Copy link
Member
balloob commented Mar 3, 2017

Nice! 🐬

@home-assistant home-assistant locked and limited conversation to collaborators Jun 2, 2017
@kellerza kellerza deleted the recorder_exception branch March 18, 2018 20:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recorder with external SQL server - "Database not ready" error
4 participants
0