add swoosh and oban

This commit is contained in:
2022-02-08 19:59:23 -05:00
parent acf64cee18
commit a39c3da351
26 changed files with 365 additions and 84 deletions

View File

@@ -15,7 +15,9 @@ defmodule Cannery.Application do
# Start the PubSub system
{Phoenix.PubSub, name: Cannery.PubSub},
# Start the Endpoint (http/https)
CanneryWeb.Endpoint
CanneryWeb.Endpoint,
# Add Oban
{Oban, oban_config()}
# Start a worker by calling: Cannery.Worker.start_link(arg)
# {Cannery.Worker, arg}
]
@@ -39,4 +41,8 @@ defmodule Cannery.Application do
CanneryWeb.Endpoint.config_change(changed, removed)
:ok
end
defp oban_config() do
Application.fetch_env!(:cannery, Oban)
end
end