Rihanna

Rihanna is a database-backed job distributed job queue for Elixir.

Installation

Add rihanna to your list of dependencies in mix.exs:

def deps do
  [
    {:rihanna, ">= 0.0.0"}
  ]
end

ALTERNATIVE 1

Add the full repo config to your config.exs

config :rihanna, Rihanna.Repo,
  adapter: Ecto.Adapters.Postgres,
  username: "postgres",
  password: "postgres",
  database: "rihanna_db",
  hostname: "127.0.0.1",
  port: 5432

Add Rihanna.Supervisor to your supervision tree:

children = [
  {Rihanna.Supervisor, [name: Rihanna.Supervisor]}
]

ALTERNATIVE 2

Add a minimal repo config to your config.exs

config :rihanna, Rihanna.Repo,
  adapter: Ecto.Adapters.Postgres

Pass the database configuration in when you start Rihanna.Supervisor:

children = [
  {Rihanna.Supervisor, [name: Rihanna.Supervisor, config: Your.Repo.config()]}
]

FAQs

Q. Why Rihanna?

A. Because she knows how to work, work, work, work, work.