test_cluster_task v0.5.0 mix run.cluster View Source

Run a project in a distributed environment.

This mix task starts up a cluster of nodes before running the Mix.Tasks.Run mix task. The number of nodes to start (besides the master node) can be set using the "-count #" switch (defaults to 4). Each slave node will have the code and application environment from the master node loaded onto it. All switches for the mix run task will be passed along to it.

Link to this section Summary

Functions

A task needs to implement run which receives a list of command line args.

Link to this section Functions

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.