cea-hpc/clustershell — Issue #181: Task: add a way to enable/disable MsgTree buffering at runtime
Author: thiell
Created: 2012-03-03 16:49:14+00:00
State: open
Labels: Lib

We need a safe and documented way to instantaneously disable or re-enable [wiki:Task]'s MsgTree buffering. At the moment, such choice is made at {{{Task._reset()}}}-time, so it is safe to modify it, but will apply for next {{{resume()}}} only, not on-the-fly for current running loop.

{{{
#!python
task.set_default("stdout_msgtree", False)
task.set_default("stderr_msgtree", False)
}}}

This is a feature required for ClusterShell gateway, which is mainly event-based. So during {{{run()}}}-time, we will be able to disable/enable msgtree according to configuration received from parent node.