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

timeout and rpc_timeout difference #1021

Open
vnitinv opened this issue Apr 21, 2020 · 1 comment
Open

timeout and rpc_timeout difference #1021

vnitinv opened this issue Apr 21, 2020 · 1 comment
Assignees

Comments

@vnitinv
Copy link
Contributor

vnitinv commented Apr 21, 2020

Config class use timeout whereas all RPC uses rpc_timeout.
We should document this difference in behavior.

@apurvaraghu
Copy link
Collaborator

Timeout parameter used in Config class and RPC operations have different purposes and function at different levels in Ansible.
Timeout in Config class is specifically used for configuration related tasks such as applying configuration changes, roll backs etc. The Purpose of this parameter here is to determine the maximum time ansible will wait for the configuration to be complete. If the configuration operation is not completed within this timeout specified, ansible will consider this task as failed.
On the other hand, timeout in RPC is used for tasks that execute RPC’s on a device such as running operational commands, gathering device facts etc. Here the timeout parameter specifies the maximum time ansible will wait for response from RPC operation. If the device doesn’t respond within the timeout specified, ansible will consider this task as unsuccessful. Thus the main difference lies in their scope and purpose ie, timeout in Config class ensures the tasks are completed within a specified duration where as in RPC operations, this parameter ensures timely responses from the devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants