Skip to content

tries to extend timeout for deleting user#15747

Draft
anatawa12 wants to merge 4 commits intomisskey-dev:developfrom
anatawa12:extend-timeout
Draft

tries to extend timeout for deleting user#15747
anatawa12 wants to merge 4 commits intomisskey-dev:developfrom
anatawa12:extend-timeout

Conversation

@anatawa12
Copy link
Copy Markdown
Member

What

Tries to fix #9975
Related #10659

ノート数が多くて削除に時間がかかる実例やちゃんとコネクションプールが作成されるようなものを用意できていないため、どんな副作用があるかが不透明であるため、Draftとしています。

Why

ユーザを削除できないのはプライバシー等的な意味でも問題が発生するため。

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions Bot added the packages/backend Server side specific issue/PR label Apr 2, 2025
@anatawa12 anatawa12 changed the title extend timeout for deleting user tries to extend timeout for deleting user Apr 2, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2025

このPRによるapi.jsonの差分
差分はありません。
Get diff files from Workflow Page

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 2, 2025

Codecov Report

❌ Patch coverage is 45.23810% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.83%. Comparing base (d74aded) to head (c06d6ff).

Files with missing lines Patch % Lines
packages/backend/src/postgres.ts 41.37% 17 Missing ⚠️
.../queue/processors/DeleteAccountProcessorService.ts 53.84% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #15747      +/-   ##
===========================================
- Coverage    62.84%   62.83%   -0.01%     
===========================================
  Files         1150     1150              
  Lines       115224   115260      +36     
  Branches      7893     7890       -3     
===========================================
+ Hits         72407    72421      +14     
- Misses       40658    40679      +21     
- Partials      2159     2160       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@anatawa12
Copy link
Copy Markdown
Member Author

本来の問題の note 削除部分で extend してなかったので修正

export async function extendTimeoutQuery(dataSource: DataSource, query: (manager: EntityManager) => Promise<void>): Promise<void> {
const queryRunner = dataSource.createQueryRunner('master');
const manager = dataSource.createEntityManager(queryRunner);
const extendedTimeout = 1000 * 100; // 100 sec for now. How long should it be?
Copy link
Copy Markdown
Member Author

@anatawa12 anatawa12 Apr 13, 2025

Choose a reason for hiding this comment

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

Suggested change
const extendedTimeout = 1000 * 100; // 100 sec for now. How long should it be?
const extendedTimeout = 0; // infinity

もし試す方でタイムアウトを無効化する場合はこちらを0にしてください 

@github-actions
Copy link
Copy Markdown
Contributor

Backend Memory Usage Comparison

Metric base head Diff
RSS 359.83 MB 356.79 MB -3.04 MB (-.84%)

See workflow logs for details

@anatawa12
Copy link
Copy Markdown
Member Author

conflict resolved. 試用サーバーからのフィードバック待ちの認識です

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages/backend Server side specific issue/PR

Projects

Development

Successfully merging this pull request may close these issues.

アカウントの削除が終わらない 12.108.0~

1 participant