-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Fix scheduled reports for mysql #6512
Fix scheduled reports for mysql #6512
Conversation
would anyone know why it locks up sqlite? |
yes, I tried this way a few days ago. It works with mysql. I also met problem that db is locked when I try to update a dashboard email schedule or slice email schedule. |
@cloud26 - can you please confirm that the dashboard email schedule editing was not locking after this fix? Once you confirm, I will merge this in. Thank you @phoenix24 for the approval. |
What is the MySQL issue you are referring to? |
Sorry for late reply, I got a lot things to do last week. |
setup.py
Outdated
@@ -94,9 +94,6 @@ def get_git_sha(): | |||
'thrift-sasl>=0.2.1', | |||
'unicodecsv', | |||
'unidecode>=0.04.21', | |||
'croniter==0.3.25', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these deps not required anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(apologies for the late reply here. I was on vacation and traveling)
These dependencies are still needed, but they are specified in requirements.txt
already. Did not want to keep it in two places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requirements.txt
is a pip-compiled, "pinned" version of what's in here. We probably want to keep this in here though I think it belong in an extra_requires
sub-category, but that's outside the scope of this PR. For now let's just keep this in the repo. Mind remove these edits from this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mistercrunch removed the edits. Let me know if you are OK with it and I will merge it in.
@mistercrunch this was the issue. |
setup.py
Outdated
@@ -94,9 +94,6 @@ def get_git_sha(): | |||
'thrift-sasl>=0.2.1', | |||
'unicodecsv', | |||
'unidecode>=0.04.21', | |||
'croniter==0.3.25', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requirements.txt
is a pip-compiled, "pinned" version of what's in here. We probably want to keep this in here though I think it belong in an extra_requires
sub-category, but that's outside the scope of this PR. For now let's just keep this in the repo. Mind remove these edits from this PR?
Codecov Report
@@ Coverage Diff @@
## master #6512 +/- ##
=======================================
Coverage 56.24% 56.24%
=======================================
Files 518 518
Lines 23007 23007
Branches 2750 2750
=======================================
Hits 12941 12941
Misses 9655 9655
Partials 411 411
Continue to review full report at Codecov.
|
7ef2773
to
e25a56f
Compare
@mistercrunch approve please? |
@mistercrunch @timifasubaa @cloud26 - A tentative fix to the mysql issue.
I tried it with postgres and it works.
Sqlite db - I get errors saying "db is locked".
@cloud26 - can you try it with mysql please?