Skip to content
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

Support TTL (Time To Live) value for services. #162

Merged
merged 1 commit into from
Aug 9, 2017

Conversation

billfitzgerald0120
Copy link
Contributor

@billfitzgerald0120 billfitzgerald0120 commented Aug 4, 2017

Allow specifying the length of time to allow the check_completed step to run in the generic service state-machine.
This will allow long running processes to finish.

UI changes done.

https://www.pivotaltracker.com/n/projects/1937537/stories/147361947
https://bugzilla.redhat.com/show_bug.cgi?id=1459735

Depends on:
#186
ManageIQ/manageiq-automation_engine#46

@miq-bot add_label enhancement, services
@miq-bot assign @gmcculloug

@billfitzgerald0120
Copy link
Contributor Author

@tinaafitz Please review

@miq-bot
Copy link
Member

miq-bot commented Aug 4, 2017

This pull request is not mergeable. Please rebase and repush.

@@ -55,6 +72,8 @@ def check_completed(service)
end
else
@handle.root['ae_result'] = 'retry'
@handle.root['ae_retry_interval'] = 1.minute
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@billfitzgerald0120 Since we setup a method for calculating ae_retry_interval I would expect this default value to move into there to keep the logic all together. It is also better for testing.

@billfitzgerald0120
Copy link
Contributor Author

Greg - Made changes as you requested.

@billfitzgerald0120
Copy link
Contributor Author

@tinaafitz Please Review

Copy link
Member

@tinaafitz tinaafitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@billfitzgerald0120 Looks good.
@mkanoor Please review.

it_behaves_like "#ttl"
end

context "600 ttl, 100 retries eq interval 6" do
Copy link
Contributor

@mkanoor mkanoor Aug 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tinaafitz whats the difference between these different scenarios could we just use 1 test. maybe the 300 ttl or the 600 ttl

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkanoor There's no difference. We'll remove one of the tests.

Allow specifying the length of time to allow the check_completed step to run in the generic service state-machine.
This will allow long running processes to finish.

UI changes done.

https://www.pivotaltracker.com/n/projects/1937537/stories/147361947
https://bugzilla.redhat.com/show_bug.cgi?id=1459735

Initial PR: ManageIQ#148
Moved interval calculations from start to check_completed.
@miq-bot
Copy link
Member

miq-bot commented Aug 7, 2017

Checked commit billfitzgerald0120@220fa1e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

@gmcculloug gmcculloug merged commit 7d66b4b into ManageIQ:master Aug 9, 2017
@gmcculloug gmcculloug added this to the Sprint 67 Ending Aug 21, 2017 milestone Aug 9, 2017
@tinaafitz
Copy link
Member

@miq-bot add_label fine/yes

@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit f4c85d78dff0fec31ccc77cc181fc81e9e885b0c
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Wed Aug 9 10:41:49 2017 -0400

    Merge pull request #162 from billfitzgerald0120/check_completed
    
    Support TTL (Time To Live) value for services.
    (cherry picked from commit 7d66b4be1b38d42d9571cfa9f99872204d026775)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1479407

@simaishi simaishi removed the fine/yes label Sep 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants