-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HYC-1988 - Handle soffice pptx (#1132)
* Attempt to kill soffice if it times out * Add custom retry behavior for create derivs job, have it skill SofficeTimeoutErrors immediately * Use redlock to prevent multiple soffices from running at once. Remove retry handler since it wasn't getting called * Explicitly add redlock dependency. Require redlock * Add tests for encode method to verify timeout and kill works. Reduce the number of retries to 3, to avoid bogging the system down * Use pgroup, capture more info and reproduce more of the behavior from original timeout method * Wait for lock to become available rather than giving up immediately. Move lock closer to execution * Reduce the amount of new code by using the existing execute functionality. Fix locking retries
- Loading branch information
Showing
6 changed files
with
134 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 50 additions & 2 deletions
52
app/overrides/lib/hydra/derivatives/processors/document_override.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters