debianize-mobilizon/lib/service/workers/build_site_map.ex

13 lines
255 B
Elixir
Raw Normal View History

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