-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Use ansible-runner change to get periodic keep-alive messages in K8S #13608
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
Conversation
bb817e7
to
fee8ca5
Compare
I tested building the UI, and then I was able to edit and save the value of the setting. Without UI changes I was able to see the setting, but not able to edit it. I know some changes here are just test file changes. |
UI changes lgtm |
99a00a4
to
dc72d99
Compare
@@ -85,6 +85,8 @@ def event_handler(self, event_data): | |||
# which generate job events from two 'streams': | |||
# ansible-inventory and the awx.main.commands.inventory_import | |||
# logger | |||
if event_data.get('event') == 'keepalive': | |||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From discussion with @TheRealHaoLiu, we are unlikely to need this, but I would prefer to keep it in anyway. Maybe leave a comment that it should be dead code.
@@ -282,6 +282,16 @@ | |||
placeholder={'HTTP_PROXY': 'myproxy.local:8080'}, | |||
) | |||
|
|||
register( | |||
'AWX_RUNNER_KEEPALIVE_SECONDS', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we rename this to something about K8S_?
Make setting API configurable and process keepalive events when seen in the event callback Use env var in pod spec and make it specific to K8S
Co-authored-by: Shane McDonald <me@shanemcd.com>
dc72d99
to
90f54b9
Compare
SUMMARY
This is a candidate patch for consuming ansible/ansible-runner#1191, which adds keepalive messages.
FYI for @nitzmahone, I hope we are narrowing in on this implementation. This will require keeping and supporting the environment variable. There are no plans to use the CLI flag. I also maintain a weak preference to have the event callback pass on the keep-alive events.
ISSUE TYPE
COMPONENT NAME