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

Allow the rescan process to be stopped #1105

Closed
mprachar opened this issue Mar 7, 2020 · 11 comments · Fixed by #1540
Closed

Allow the rescan process to be stopped #1105

mprachar opened this issue Mar 7, 2020 · 11 comments · Fixed by #1540

Comments

@mprachar
Copy link

mprachar commented Mar 7, 2020

my rescans take over an hour - the fact that the refresh button inside an artist causes a rescan of the entire root folder makes it easy to accidentally kick one off.

@ta264
Copy link
Contributor

ta264 commented Mar 7, 2020

You can stop it from the tasks page can't you?

@mprachar
Copy link
Author

mprachar commented Mar 7, 2020 via email

@ta264
Copy link
Contributor

ta264 commented Mar 7, 2020

Hmm I'll investigate that.

Is like to understand the root cause of what the scans are so slow though. Do you have a huge number of unmapped files? Or is there a more serious bug I need to address?

@mprachar
Copy link
Author

mprachar commented Mar 7, 2020 via email

@ta264
Copy link
Contributor

ta264 commented Mar 7, 2020

Scanning the whole root folder is by design - lidarr is now much more flexible about where files can be located.

It should only be scanning files that are "new", or, in the case that the refresh updated some metadata, files that are not matched against tracks already. For reference, my library is 20k tracks and they're all matched. A scan takes 6 seconds.

If the scan if just slow because you have a lot of unmatched files then I should perhaps make lidarr less eager to scan unmatched files again. If that's not the case then I think there might be some other issue I should address. Either way, being able to cancel the task is just a bandaid and I'd like to figure out the "real" solution

@mprachar
Copy link
Author

mprachar commented Mar 7, 2020 via email

@mprachar
Copy link
Author

mprachar commented Mar 8, 2020 via email

@CHlLL7
Copy link

CHlLL7 commented Mar 18, 2020

I'm having the same issue. But my scan takes about 3-4 hours with 8000 files. Also, there in the task queue there is like 50 more rescan folders. I can delete them but they keep reappearing.

@DunklerPhoenix
Copy link

Same for me. It needs about 1,5 hours to scan 46k files.
If I manualy edit an album, lidarr will scan the whole root folder.
In this time I can't import anything

@IwishIcanFLighT
Copy link

Would greatly appreciate this feature as well. With big music libraries, the scan take literally hours to finish, greatly impacting CPU and disk usage. The perfect way would be to have option to set an interval between scan, only manual scan, and ability to cancel scan. Thanks!

@ta264 ta264 mentioned this issue Aug 26, 2020
1 task
@ta264
Copy link
Contributor

ta264 commented Aug 26, 2020

I don't plan to allow the scan to be cancelled, but hopefully #1540 and #1508 means there's no longer a real need for it.

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 a pull request may close this issue.

5 participants