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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove PostgresJobStore (compatibility layer) #188
Conversation
Codecov Report
@@ Coverage Diff @@
## master #188 +/- ##
==========================================
- Coverage 99.78% 99.77% -0.01%
==========================================
Files 21 21
Lines 912 898 -14
Branches 98 96 -2
==========================================
- Hits 910 896 -14
Misses 1 1
Partials 1 1
Continue to review full report at Codecov.
|
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.
There's also the "job_store" arg of the App
e7f626b
to
59d1b7a
Compare
Yep, fixed. |
procrastinate/app.py
Outdated
) | ||
logger.warning(f"Deprecation Warning: {message}") | ||
warnings.warn(DeprecationWarning(message)) | ||
connector = job_store | ||
if not connector: |
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.
Connector can now be a mandatory argument and this if
branch can be removed.
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.
Yeah, I was too fast.
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.
Fixed.
59d1b7a
to
474b89d
Compare
We're getting hit by pytest-dev/pytest-asyncio#154. |
@ewjoachim pytest-asyncio 0.11.0 broke our tests (see pytest-dev/pytest-asyncio#154). So I added a commit to use |
tests/integration/test_aiopg_connector.py::test_execute_query_simultaneous fails with pytest-asyncio 0.11.0. See pytest-dev/pytest-asyncio#154.
b4f816a
to
14bba35
Compare
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.
Yeah, it's better with a != than a <, because this will allow us to use future version when they fix it, or be informed if they don't.
Good news. The problem is fixed with pytest-asyncio 0.12.0, which just came out. |
But the nice thing is that we don't even need to change anything now. |
This removes the PostgresJobStore compatibility layer.
Closes #187.
Successful PR Checklist: