fabric/fabric — Issue #556: Allow runtime selection of per-task parallelization
Author: bitprophet
Created: 2012-02-10 01:41:18+00:00
State: open
Labels: 1.x, Core, Feature, Network

Right now, one can only set parallel behavior like so:

* Globally, statically, via `env.parallel`
* Per-task, statically, via `@parallel`
* Globally, at runtime, via `-P`/`--parallel` (just sets env var)

The missing quadrant is "per-task, at runtime, via ???".

Other runtime per-task tweaks for hosts/roles/host exclusions, are filtered out as "magical kwargs", e.g. `fab foo:host=bar` where `bar` is popped and used by `fabric/main.py` to prep a per-task host list. This is *probably* the way to go here as well, as much as I dislike adding more names to the "invalid kwargs for your own tasks" list.