-
Notifications
You must be signed in to change notification settings - Fork 109
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
FEATURE: Timeout option for ImageOptim. #162
Conversation
@toy Please review :) Thank you! |
378cd9f
to
8390d62
Compare
I'm also not sure what is with appveyor, but can be ignored till merging. As I understand you wanted to change worker timeout in #149 to image optimisation timeout as in this PR. I think it is better to already think about possibility of both options. Maybe Do I understand right that you want timeout exception to lead to abort of cli? I think |
I'm only looking to implement a global timeout for image optim.
Yup it should abort the CLI as well :) |
This PR addresses the feedback what was originally given on PR toy#162 by adding a default worker specific timeout option in addition to a global timeout. The original commit discourse@8bf3c0e on PR toy#162 with just the global timeout has been in production since 2018-07-08 on Discourse instances using a forked version of this gem. We would like to get this change merged in, so that we can get off of the discourse specific fork and use the latest version of the image_optim gem. Co-authored-by: Blake Erickson <[email protected]>
This PR addresses the feedback what was originally given on PR toy#162 by adding a default worker specific timeout option in addition to a global timeout. The original commit discourse@8bf3c0e on PR toy#162 with just the global timeout has been in production since 2018-07-08 on Discourse instances using a forked version of this gem. We would like to get this change merged in, so that we can get off of the discourse specific fork and use the latest version of the image_optim gem. Co-authored-by: Blake Erickson <[email protected]> Do not raise if optimized before timeout Based on feedback this commit includes the following changes: When optimizing multiple images with `optimize_images` a single image timeout doesn't break execution. The global timeout will still raise an exception though if it is reached. When optimizing a single image do not raise an exception if a single worker has succeeded but has reached the timeout period while running through the remaining workers. When optimizing a single image if a single worker times out it will continue on to the next worker until the global timeout is reached.
Re-opening the original PR toy#162 and replace PR toy#184 (sorry for multiple PRs). The original commit discourse/image_optim@8bf3c0e on PR toy#162 with just the global timeout has been in production since 2018-07-08 on Discourse instances using a forked version of this gem. We would like to get this change merged in, so that we can get off of the discourse specific fork and use the latest version of the image_optim gem. Add add some more details in the PR discussion. Co-authored-by: Blake Erickson <[email protected]>
Re-opening the original PR toy#162 and replacing PR toy#184 (sorry for multiple PRs). The original commit discourse/image_optim@8bf3c0e on PR toy#162 with just the global timeout has been in production since 2018-07-08 on Discourse instances using a forked version of this gem. We would like to get this change merged in, so that we can get off of the discourse specific fork and use the latest version of the image_optim gem. Going to add some more details in the PR discussion. Co-authored-by: Blake Erickson <[email protected]>
The previous PR toy/image_optim#162 was closed and a new PR toy/image_optim#189 has been submitted.
Re-opening the original PR #162 and replacing PR #184 (sorry for multiple PRs). The original commit discourse/image_optim@8bf3c0e on PR #162 with just the global timeout has been in production since 2018-07-08 on Discourse instances using a forked version of this gem. We would like to get this change merged in, so that we can get off of the discourse specific fork and use the latest version of the image_optim gem. Going to add some more details in the PR discussion. Co-authored-by: Blake Erickson <[email protected]>
Re-opening the original PR #162 and replacing PR #184 (sorry for multiple PRs). The original commit discourse/image_optim@8bf3c0e on PR #162 with just the global timeout has been in production since 2018-07-08 on Discourse instances using a forked version of this gem. We would like to get this change merged in, so that we can get off of the discourse specific fork and use the latest version of the image_optim gem. Going to add some more details in the PR discussion. Co-authored-by: Blake Erickson <[email protected]>
Re-opening the original PR toy#162 and replacing PR toy#184 (sorry for multiple PRs). The original commit discourse/image_optim@8bf3c0e on PR toy#162 with just the global timeout has been in production since 2018-07-08 on Discourse instances using a forked version of this gem. We would like to get this change merged in, so that we can get off of the discourse specific fork and use the latest version of the image_optim gem. Going to add some more details in the PR discussion. Co-authored-by: Blake Erickson <[email protected]>
Re-opening the original PR toy#162 and replacing PR toy#184 (sorry for multiple PRs). The original commit discourse/image_optim@8bf3c0e on PR toy#162 with just the global timeout has been in production since 2018-07-08 on Discourse instances using a forked version of this gem. We would like to get this change merged in, so that we can get off of the discourse specific fork and use the latest version of the image_optim gem. Going to add some more details in the PR discussion. Co-authored-by: Blake Erickson <[email protected]>
The original commit discourse/image_optim@8bf3c0e, see discussion in resolved PRs. Resolves toy#21, resolves toy#148, resolves toy#149, resolves toy#162, resolves toy#184, resolves toy#189. Co-authored-by: Blake Erickson <[email protected]>
The original commit discourse/image_optim@8bf3c0e, see discussion in resolved PRs. Resolves toy#21, resolves toy#148, resolves toy#149, resolves toy#162, resolves toy#184, resolves toy#189. Co-authored-by: Blake Erickson <[email protected]> Co-authored-by: Ivan Kuchin <[email protected]>
The original commit discourse/image_optim@8bf3c0e, see discussion in resolved PRs. Resolves #21, resolves #148, resolves #149, resolves #162, resolves #184, resolves #189. Co-authored-by: Blake Erickson <[email protected]> Co-authored-by: Ivan Kuchin <[email protected]>
No description provided.