Skip to content

Commit

Permalink
Removed worker (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieraneglin authored Apr 25, 2024
1 parent 98c2812 commit edb48b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 74 deletions.
70 changes: 0 additions & 70 deletions lib/pinchflat/boot/nfo_backfill_worker.ex

This file was deleted.

5 changes: 1 addition & 4 deletions lib/pinchflat/boot/post_job_startup_tasks.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ defmodule Pinchflat.Boot.PostJobStartupTasks do
Phoenix supervision tree.
"""

alias Pinchflat.Repo
alias Pinchflat.Boot.NfoBackfillWorker

# restart: :temporary means that this process will never be restarted (ie: will run once and then die)
use GenServer, restart: :temporary
import Ecto.Query, warn: false
Expand All @@ -29,7 +26,7 @@ defmodule Pinchflat.Boot.PostJobStartupTasks do
"""
@impl true
def init(state) do
Repo.insert_unique_job(NfoBackfillWorker.new(%{}))
# Nothing at the moment!

{:ok, state}
end
Expand Down

0 comments on commit edb48b3

Please sign in to comment.