-
Notifications
You must be signed in to change notification settings - Fork 20
Change scheduler to apscheduler #1024
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
base: main
Are you sure you want to change the base?
Conversation
cd7f1de
to
ec2aa44
Compare
CodSpeed Performance ReportMerging #1024 will not alter performanceComparing 🎉 Hooray!
|
c2b5da8
to
09e0590
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1024 +/- ##
==========================================
+ Coverage 84.93% 85.09% +0.16%
==========================================
Files 214 217 +3
Lines 10408 10481 +73
Branches 1020 1003 -17
==========================================
+ Hits 8840 8919 +79
- Misses 1295 1308 +13
+ Partials 273 254 -19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b406470
to
5074546
Compare
de944b7
to
af4b6a8
Compare
- update cli commands. - update unit tests.
- rename scheduled jobs to scheduled tasks
af4b6a8
to
ad0f3bc
Compare
- update deprecation of `db.wrapped_database.scoped_session.close_all()` to `close_all_sessions()`.
ad0f3bc
to
a2fc3f0
Compare
if isinstance(value, (int, float)): | ||
return -value | ||
if isinstance(value, str): | ||
return "".join(chr(255 - ord(c)) for c in value) |
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.
This is limited to ascii chars, anything beyond that raises a ValueError. Can address this by keeping the unicode points as a tuple
return tuple(-ord(c) for c in value)
return -value | ||
if isinstance(value, str): | ||
return "".join(chr(255 - ord(c)) for c in value) | ||
return value |
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.
Think datetime should be covered here?
scheduler.start(paused=True) | ||
scheduled_tasks = scheduler.get_jobs() | ||
scheduler.shutdown(wait=False) | ||
jobstores["default"].engine.dispose() |
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.
Would be good to have a utility function for this, few repetitions here and in cli module
mock_job.args = () | ||
mock_job.kwargs = {} | ||
|
||
# mock_scheduler.start = mock.MagicMock() |
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.
few commented lines in file can be removed
Related: #909