-
Notifications
You must be signed in to change notification settings - Fork 23
Run post_github_summary_message coroutine via RQ #359
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #359 +/- ##
==========================================
- Coverage 89.51% 89.38% -0.14%
==========================================
Files 71 71
Lines 2509 2506 -3
==========================================
- Hits 2246 2240 -6
- Misses 263 266 +3
Continue to review full report at Codecov.
|
@@ -6,19 +6,30 @@ def add(x, y): | |||
return x + y | |||
|
|||
|
|||
@rq.job |
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.
notes
@@ -54,26 +52,11 @@ def _create_async_client(self): | |||
"""Generate client used for making asynchronous requests""" | |||
return httpx.AsyncClient(headers=self.headers, params=self.params) | |||
|
|||
def get_activity_for_users( | |||
async def get_activity_for_users( |
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 read a lot better now
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.
LooksGoodToMe:)
What does this do
post_github_summary_message
via RQWhy are we doing this
Don't have to manually queue up coroutines via asyncio. Results in a cleaner API
How should this be tested
Added pytest-asyncio to make it easier to test coroutines
Migrations
n/a
Dependencies
n/a
Callouts
n/a