Where discussion of the task "timeout" keyword should go

We just accidentally re-implemented the task timeout keyword with a combination of async and poll, mostly because there is discussion of the latter two on the Asynchronous actions and polling page, but no discussion of the task timeout keyword anywhere. It is mentioned in the Playbook Keywords page, but that’s it as far as I’ve found.

The obvious fix is to add some discussion about timeout to the docs. Much less obvious is where that discussion should land. My lean is that it should be part of the “Asynchronous actions and polling” page, since it is sort of the “null case” of async. At least it should get a mention in the discussion of async, particularly since for some cases timeout may be a better fit anyway.

Looking through the index for candidate homes for a task timeout discussion turns up:

  • Using Ansible playbooks / Ansible playbooks / Task execution
  • Using Ansible playbooks / Ansible playbooks / Playbook execution / Task execution
  • Using Ansible playbooks / Executing playbooks / Asynchronous actions and polling
  • Using Ansible playbooks / Working with playbooks / Error handling in playbooks

In other words, the current structure on the left doesn’t make it obvious to me where such a discussion should land. If not in the Asynchronous actions page, then do we have a much bigger problem?

1 Like

I lean for the first, aysnc is itself already a form of timeout and it can muddy the waters, though i would mention it there as a either an incompatible setting.

Hey, we talked about this at the DaWGs meeting today (Tues, April 9) and one piece of feedback came in from @acozine that I wanted to put into this thread so it doesn’t get lost:

My 2 cents on the ‘timeout’ keyword question is - at least a mention on each of those candidate pages, with a link to wherever we put the more fleshed-out discussion. because it is the kind of thing that could be useful in a bunch of different scenarios

That seems like a pretty good approach in my opinion too. Cheers.

2 Likes