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

Disable background tasks during PnL process #7845

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

yabirgb
Copy link
Member

@yabirgb yabirgb commented Apr 26, 2024

When running the PnL report ensure that no background task gets scheduled that could slow down the task that the user has requested

Closes #(issue_number)

Checklist

  • The PR modified the frontend, and updated the user guide to reflect the changes.

When running the PnL report ensure that no background task gets scheduled
that could slow down the task that the user has requested
Copy link

codecov bot commented Apr 26, 2024

Codecov Report

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

Project coverage is 77.75%. Comparing base (e743b9a) to head (564a7e6).
Report is 10 commits behind head on develop.

Files Patch % Lines
rotkehlchen/api/rest.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7845      +/-   ##
===========================================
- Coverage    78.17%   77.75%   -0.42%     
===========================================
  Files          969      969              
  Lines        63141    63141              
  Branches     11092    11092              
===========================================
- Hits         49358    49098     -260     
- Misses       11597    11843     +246     
- Partials      2186     2200      +14     
Flag Coverage Δ
backend 81.03% <66.66%> (-0.49%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -541,6 +541,8 @@ def delete_async_task(self, task_id: int) -> Response:
):
log.debug(f'Killing api task greenlet with {task_id=}')
greenlet.kill(exception=GreenletKilledError('Killed due to api request'))
# if a task has disabled the task manager ensure that it gets reactivated
self.rotkehlchen.task_manager.should_schedule = True # type: ignore[union-attr] # here task manager is not None
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand what this is here

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

2 participants