Closed yswtrue closed 4 years ago
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.92. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Probably related to #208 at least a little bit.
There's not much memory management right now for this API, but the 1GB seems excessive.
I wouldn't recommend getSuggestedUsersbyIDCrawler for large crawling projects. It only returns a few different users who are "trending" at the time. A better solution is probably to extract userIDs from trending, hashtags, and sound methods.
OK, and can I get users in specifict counntry, not in all countries? I have tried to pass the language param, but not sure is works.
Theoretically, you can with the language and region parameters, but TikTok doesn't seem to care about those parameters. Your best bet is using a proxy to a country you want.
I've made substantial changes to this API in terms of memory optimizations in the last few days your code may need updating, but it is more flexible to be able to deploy in a production environment.
Describe the bug
When I deploy the service on the server. I run the getSuggestedUsersbyIDCrawler on celery worker. It works fine at first, but as time goes, the memory usage keeps growing. Now I have limited each worker use 1G memory.But the work get this error
Process 'ForkPoolWorker-780' pid:12156 exited with 'signal 9 (SIGKILL)'
how to limit the memory usage.The buggy code
Please insert the code that is throwing errors or is giving you weird unexpected results.
Expected behavior
A clear and concise description of what you expected to happen.
Error Trace (if any)
Put the error trace below if there's any error thrown.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.