Task output linked to wrong task with mitogen_free and mitogen_host_pinned strategies
I am running a complex playbook on a large amount of hosts. For this reason, I have hidden the "OK" and "SKIPPED" hosts. Trying to speed up this playbook with mitogen, I find that task output is shown under unrelated tasks. The name of the task shown is a task done earlier than the task whose output is shown under it.
Relevant env vars that ansible is run with:
ANSIBLE_DISPLAY_OK_HOSTS: "false"
ANSIBLE_DISPLAY_SKIPPED_HOSTS: "false"
ANSIBLE_STRATEGY: mitogen_host_pinned
ANSIBLE_STRATEGY_PLUGINS: /usr/local/lib/python3.12/site-packages/ansible_mitogen/plugins/strategy
Ansible version 2.16.12 (for backwards compatibility reasons) Currently tested with 0.3.13 Host: Ubuntu 22.04 Target: Various Ubuntu versions, ranging from 18.04 to 24.04
Thanks for the report. I'm afraid I don't think I can look at this anytime soon. Ansible strategies are not something I have experience with, and only mitogen_linear has any coverage in the Mitogen test suite.
A minimal reproduction (e.g. a playbook + inventory) would be a necessary starting point, but I couldn't promise anything even then.
Unfortunately I can't currently put time into finding a minimal reproduction. Being limited to using mitogen_linear is good enough for my purposes.