edgurgel / verk

A job processing system that just verks! 🧛‍
https://hex.pm/packages/verk
MIT License
723 stars 65 forks source link

Change Verk.Supervisor to support treamlined child specs #185

Closed Psli closed 5 years ago

Psli commented 5 years ago

Elixir v1.5 allows child specifications, which specify how a child process is supervised, to be defined in modules.

children = [
  MyApp.Repo,
  MyApp.Endpoint
]

Supervisor.start_link(children, strategy: :one_for_one)