Local data worker improvements (#66)

* Adds new worker for backfilling data

* Adds backfill job to startup tasks
This commit is contained in:
Kieran authored and GitHub committed 2024-03-10 15:17:15 -07:00
1 parent dc0313d875
commit 09a4bcb36b
5 files changed
+166 -4

No files matched your search

@@ -14,7 +14,11 @@ defmodule Pinchflat.Workers.FastIndexingWorker do
@impl Oban.Worker
@doc """
TODO
Kicks off the fast indexing process for a source, reschedules the job to run again
once complete. See `MediaCollectionIndexingWorker` and `MediaIndexingWorker` comments
for more
Returns :ok | {:ok, :job_exists} | {:ok, %Task{}}
"""
def perform(%Oban.Job{args: %{"id" => source_id}}) do
source = Sources.get_source!(source_id)