mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
workaround for a bug in django-q: task results with too long names would not show up in the result lists.
This commit is contained in:
parent
9e31429732
commit
d8e27600be
3 changed files with 4 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ class Handler(FileSystemEventHandler):
|
|||
try:
|
||||
async_task("documents.tasks.consume_file",
|
||||
file,
|
||||
task_name=os.path.basename(file))
|
||||
task_name=os.path.basename(file)[:100])
|
||||
except Exception as e:
|
||||
# Catch all so that the consumer won't crash.
|
||||
logging.getLogger(__name__).error(
|
||||
|
|
@ -71,7 +71,7 @@ class Command(BaseCommand):
|
|||
if entry.is_file():
|
||||
async_task("documents.tasks.consume_file",
|
||||
entry.path,
|
||||
task_name=os.path.basename(entry.path))
|
||||
task_name=os.path.basename(entry.path)[:100])
|
||||
|
||||
# Start the watchdog. Woof!
|
||||
if settings.CONSUMER_POLLING > 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue