A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Updated docs for new hook feature
Daniel Quinn3827c5219415
diff --git a/docs/changelog.rst b/docs/changelog.rstindex 698ee3bd5..2b11eb6f4 100644--- a/docs/changelog.rst+++ b/docs/changelog.rst@@ -3,6 +3,8 @@ Changelog* 0.2.0+ * `#81`_: Added a hook to run an arbitrary script after every document is+ consumed.* `#98`_: Added optional environment variables for ImageMagick so that itdoesn't explode when handling Very Large Documents or when it's justrunning on a low-memory system. Thanks to `Florian Harr`_ for his help ondiff --git a/docs/consumption.rst b/docs/consumption.rstindex 0c584d0d2..26b03a654 100644--- a/docs/consumption.rst+++ b/docs/consumption.rst@@ -48,14 +48,21 @@ Just write a script, put it somewhere that Paperless can read & execute, andthen put the path to that script in ``paperless.conf`` with the variable name``PAPERLESS_POST_CONSUME_SCRIPT``.+.. important::++ This script is executed in a **blocking** process, which means that if the+ script takes a long time to run, it can significantly slow down your+ document consumption flow. If you want things to run asynchronously,+ you'll have to fork the process in your script and exit.+.. _consumption-directory-hook-variablesWhat Can This Script Do?........................-It's your script, so you're limited by own imagination and the laws of physics.-However, the following values are passed to the script in order:+It's your script, so you're only limited by your imagination and the laws of+physics. However, the following values are passed to the script in order:* Document id* Generated file namediff --git a/paperless.conf.example b/paperless.conf.exampleindex 094a297cf..c6f6ae191 100644--- a/paperless.conf.example+++ b/paperless.conf.example@@ -34,8 +34,8 @@ PAPERLESS_SHARED_SECRET=""# After a document is consumed, Paperless can trigger an arbitrary script if# you like. This script will be passed a number of arguments for you to work-# with. For more information, please see the documentation. The default is-# blank, which means nothing will be executed.+# with. The default is blank, which means nothing will be executed. For more+# information, take a look at the docs: http://paperless.readthedocs.org/en/latest/consumption.html#hooking-into-the-consumption-process#PAPERLESS_POST_CONSUME_SCRIPT="/path/to/an/arbitrary/script.sh"