edgurgel / verk

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

Change Verk.Supervisor to support treamlined child specs #186

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,
  Verk.Supervisor
]

Supervisor.start_link(children, strategy: :one_for_one)
edgurgel commented 5 years ago

Thank you! I will release a new version soon!