|
|
@ -13,29 +13,30 @@
|
|
|
|
mitogen_shutdown_all:
|
|
|
|
mitogen_shutdown_all:
|
|
|
|
when: is_mitogen
|
|
|
|
when: is_mitogen
|
|
|
|
|
|
|
|
|
|
|
|
- name: Spin up a bunch of interpreters
|
|
|
|
# TODO: https://github.com/dw/mitogen/issues/696
|
|
|
|
custom_python_detect_environment:
|
|
|
|
# - name: Spin up a bunch of interpreters
|
|
|
|
become: true
|
|
|
|
# custom_python_detect_environment:
|
|
|
|
vars:
|
|
|
|
# become: true
|
|
|
|
ansible_become_user: "mitogen__user{{item}}"
|
|
|
|
# vars:
|
|
|
|
with_sequence: start=1 end={{ubound}}
|
|
|
|
# ansible_become_user: "mitogen__user{{item}}"
|
|
|
|
register: first_run
|
|
|
|
# with_sequence: start=1 end={{ubound}}
|
|
|
|
|
|
|
|
# register: first_run
|
|
|
|
|
|
|
|
|
|
|
|
- name: Reuse them
|
|
|
|
# - name: Reuse them
|
|
|
|
custom_python_detect_environment:
|
|
|
|
# custom_python_detect_environment:
|
|
|
|
become: true
|
|
|
|
# become: true
|
|
|
|
vars:
|
|
|
|
# vars:
|
|
|
|
ansible_become_user: "mitogen__user{{item}}"
|
|
|
|
# ansible_become_user: "mitogen__user{{item}}"
|
|
|
|
with_sequence: start=1 end={{ubound}}
|
|
|
|
# with_sequence: start=1 end={{ubound}}
|
|
|
|
register: second_run
|
|
|
|
# register: second_run
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
# - assert:
|
|
|
|
that:
|
|
|
|
# that:
|
|
|
|
- first_run.results[item|int].pid == second_run.results[item|int].pid
|
|
|
|
# - first_run.results[item|int].pid == second_run.results[item|int].pid
|
|
|
|
with_items: start=0 end={{max_interps}}
|
|
|
|
# with_items: start=0 end={{max_interps}}
|
|
|
|
when: is_mitogen
|
|
|
|
# when: is_mitogen
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
# - assert:
|
|
|
|
that:
|
|
|
|
# that:
|
|
|
|
- first_run.results[-1].pid != second_run.results[-1].pid
|
|
|
|
# - first_run.results[-1].pid != second_run.results[-1].pid
|
|
|
|
when: is_mitogen
|
|
|
|
# when: is_mitogen
|
|
|
|