Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Run post_github_summary_message coroutine via RQ #359

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

alysivji
Copy link
Member

@alysivji alysivji commented Aug 28, 2021

What does this do

Why 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

@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2021

Codecov Report

Merging #359 (b7e231f) into master (5e3543f) will decrease coverage by 0.13%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
busy_beaver/apps/debug/workflows.py 0.00% <0.00%> (ø)
...beaver/apps/github_integration/summary/workflow.py 95.45% <100.00%> (ø)
busy_beaver/common/wrappers/github.py 97.08% <100.00%> (-0.17%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e3543f...b7e231f. Read the comment docs.

@@ -6,19 +6,30 @@ def add(x, y):
return x + y


@rq.job
Copy link
Member Author

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(
Copy link
Member Author

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

Copy link

@s4shantanu s4shantanu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LooksGoodToMe:)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants