mobilizon.chapril.org-mobil.../lib/service/workers/build_site_map.ex
Thomas Citharel c56fb710b6
Introduce Sitemaps
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-12 16:29:34 +02:00

13 lines
255 B
Elixir

defmodule Mobilizon.Service.Workers.BuildSiteMap do
@moduledoc """
Worker to build sitemap
"""
alias Mobilizon.Service.SiteMap
use Oban.Worker, queue: "background"
@impl Oban.Worker
def perform(%Job{}), do: SiteMap.generate_sitemap()
end