ExWorker

TODO: Add description

Installation

If available in Hex, the package can be installed by adding ex_worker to your list of dependencies in mix.exs:

def deps do
[
{:ex_worker, "~> 0.1.0"}
]
end

Mnesia Setup

ExWorker runs out of the box, but by default all jobs are stored in-memory. To persist jobs across application restarts, specify the DB path in your config.exs:

config :mnesia, dir: 'mnesia/#{Mix.env}/#{node()}' # Notice the single quotes

And run the following mix task:

mix que.setup

This will create the Mnesia schema and job database for you. For a detailed guide, see the [Mix Task Documentation][docs-mix]. For compiled releases where Mix is not available [see this][docs-setup-prod].

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_worker.