mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-12-06 11:11:56 +00:00
Chore: Convert the consumer to a plugin (#6361)
This commit is contained in:
1 parent
e837f1e85b
commit
b720aa3cd1
15 files changed
+922
-617
No files matched your search
@@ -67,7 +67,8 @@ class ConsumeTaskPlugin(abc.ABC):
|
||||
self.status_mgr = status_mgr
|
||||
self.task_id: Final = task_id
|
||||
|
||||
@abc.abstractproperty
|
||||
@property
|
||||
@abc.abstractmethod
|
||||
def able_to_run(self) -> bool:
|
||||
"""
|
||||
Return True if the conditions are met for the plugin to run, False otherwise
|
||||
|
||||
Reference in new issue
Block a user