Skip to content
Permalink
Browse files
service: PushFileService never recorded a file as sent.
Ansible modules were being resent continuously - but only the main
script module, and any custom modutils if any were present.

Wire footprint drops by ~1/3rd for a 500 task run of 'shell: hostname':

-rw-r--r-- 1 root root 584K Jan 31 22:06 500mito-before2
-rw-r--r-- 1 root root 434K Jan 31 22:04 500mito-filesbugonly
  • Loading branch information
dw committed Jan 31, 2019
1 parent 7cdbf36 commit 2c7af9f0479d29e1f0f5d19e531961f3f073479b
Showing with 2 additions and 1 deletion.
  1. +2 −1 mitogen/service.py
@@ -634,14 +634,15 @@ def _forward(self, context, path):
path=path,
context=context
).close()
else:
elif path not in sent:
child.call_service_async(
service_name=self.name(),
method_name='store_and_forward',
path=path,
data=self._cache[path],
context=context
).close()
sent.add(path)

@expose(policy=AllowParents())
@arg_spec({

0 comments on commit 2c7af9f

Please sign in to comment.