mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 00:14:48 +00:00
c56fb710b6
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
12 lines
255 B
Elixir
12 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
|