-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Textract runs when document file hasn't updated #7
Comments
You are right, it always runs, even if only title/tags were changed. No way to tell in |
Maybe you can query the current object in save method and inspect if the file field has changed. |
@kaedroho Is there an issue in Wagtail for file hashing, is it likely that it'll be in wagtail some time soon? |
Yep, there's a PR here: wagtail/wagtail#4526 |
The document file hash will make it in Wagtail 2.4. So this could probably be looked at with the latest Wagtail master |
Currently, it appears there's no check for whether the file has actually changed before rerunning textract so it probably reruns even if the user has only updated the title.
@gasman and I were discussing adding file hashing to Wagtail Images/Documents for cache-busting but might help solve this issue too.
The text was updated successfully, but these errors were encountered: