simon987 / sist2

Lightning-fast file system indexer and search tool
GNU General Public License v3.0
843 stars 55 forks source link

Scan task once halted never continues #468

Open MarioSob opened 6 months ago

MarioSob commented 6 months ago

Device Information (please complete the following information):

Describe the bug Scan never continues once previous scan has been interrupted by closing the program. Next scan instead of continuing on files that previous scan didn't managed to complete, only operates on newly detected files. Clicking on index doesn't help. Clicking full reindex helps although rescans all files over again.

Steps To Reproduce

  1. Run docker sist2, configure ES7 backed in sist-admin, add job with OCR of images and ebooks, add schedule, create frontend.
  2. Start indexing.
  3. In admin open tasks window to see scan happening. CPU usage is high and logs indicate OCR happening.
  4. After few files scanned and still many ahead shutdown docker gently.
  5. Start the application (container) again.
  6. In admin task is not running, it looks completed.
  7. Next auto-indexing doesn't reach for files that weren't scanned before. Frontend never lets you search those files content.

Expected behavior Next scan task "sees" files that weren't scanned and OCR them. It should go back to first file that weren't scanned by the last scan task.

Actual Behavior Next scan task ignores actual status of the files.

Additional context Files were mixture of jpegs and pdfs (with text and sometimes also/only images inside). Around 100 files in total in directory and subdirectories.