Skip to content
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

refactor: move registering of tasks into app.py #2290

Merged
merged 4 commits into from
Mar 22, 2024
Merged

Conversation

dni
Copy link
Member

@dni dni commented Feb 21, 2024

let the app have the responsibility to create the tasks not a helper function inside tasks.py. makes it way easier to follow on how those background tasks are ran.

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 58.52%. Comparing base (e3b9bd6) to head (24d1046).

Files Patch % Lines
lnbits/core/tasks.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2290      +/-   ##
==========================================
- Coverage   58.55%   58.52%   -0.03%     
==========================================
  Files          61       61              
  Lines        9185     9179       -6     
==========================================
- Hits         5378     5372       -6     
  Misses       3807     3807              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dni dni added this to the 0.12.3 milestone Feb 21, 2024
@dni dni requested review from arcbtc and motorina0 March 12, 2024 07:37
dni added 4 commits March 12, 2024 08:47
let the app have the responsibility to create the tasks not a helper function inside tasks.py.
makes it way easier to follow on how those background tasks are ran.
@dni dni requested a review from prusnak March 21, 2024 12:36
Copy link
Collaborator

@motorina0 motorina0 left a comment

Choose a reason for hiding this comment

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

LGTM

@dni dni merged commit 1398857 into dev Mar 22, 2024
23 checks passed
@dni dni deleted the refactor-running-tasks branch March 22, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants