diff --git a/src/documents/tasks.py b/src/documents/tasks.py index 8b13ce925..a798e3326 100644 --- a/src/documents/tasks.py +++ b/src/documents/tasks.py @@ -128,7 +128,7 @@ def train_classifier(*, scheduled=True): except Exception as e: logger.warning("Classifier error: " + str(e)) - task.status = states.FAILED + task.status = states.FAILURE task.result = str(e)