Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Add ability to disable inotify #118

Closed
Tooa opened this issue Dec 10, 2020 · 3 comments
Closed

Add ability to disable inotify #118

Tooa opened this issue Dec 10, 2020 · 3 comments
Assignees

Comments

@Tooa
Copy link
Contributor

Tooa commented Dec 10, 2020

Hi 👋,

the inotify mechanism does not fire in all cases e.g. for NFS shares (compare issue) or SFTP uploads (see this issue). Since in paperless-ng the consumer is started with

command=python3 manage.py document_consumer

in supervisord.conf, there is no way to pass the -no-inotifyflag at runtime any more. There is an environment variable for --loop-time though.

I would like to disable inotify and use a loop time based mechanism instead.

@jonaswinkler
Copy link
Owner

jonaswinkler commented Dec 10, 2020

This is already in paperless-ng. Edit: Note that some of the configuration options have changed. Especially regarding OCR.

https://paperless-ng.readthedocs.io/en/latest/configuration.html#software-tweaks

See CONSUMER_POLLING.

I believe that's what you're looking for?

I should probably describe that a little better in the documentation. If set to a value n greater than 0, inotify is disabled and the directory is polled every n seconds.

@Tooa
Copy link
Contributor Author

Tooa commented Dec 10, 2020

You are right. I should have done better research. The variable PAPERLESS_CONSUMER_POLLING is exactly what I was looking for.

@Tooa Tooa closed this as completed Dec 10, 2020
@zawnk
Copy link

zawnk commented Jan 1, 2021

Sorry for commenting on a closed issue, but I had the exactly the same issue and looked for 30 mins for a solution and was almost done opening my own issue :) Please add this somewhere in the docs.

In the paperless docs under point 4 this is specifically mentioned in a warning box. If I search the paperless-ng docs for inotify I don't find anything. Thanks!

@jonaswinkler jonaswinkler reopened this Jan 1, 2021
@jonaswinkler jonaswinkler self-assigned this Jan 2, 2021
jonaswinkler pushed a commit that referenced this issue Jan 4, 2021
jonaswinkler pushed a commit that referenced this issue Jan 4, 2021
tribut pushed a commit to tribut/paperless-ng that referenced this issue Aug 18, 2022
…p-timeout

Increase default timeout of `pip install`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants