* Ran a MediaItem generator; Reformatted to my liking * [WIP] added basic index function * setup oban * Added basic Oban job for indexing * Added in workers for indexing; hooked them into record creation flow * Added a task model with a phx generator * Tied together tasks with jobs and channels
19 lines
317 B
Elixir
19 lines
317 B
Elixir
defmodule Pinchflat.JobFixtures do
|
|
@moduledoc false
|
|
|
|
defmodule TestJobWorker do
|
|
@moduledoc false
|
|
use Oban.Worker, queue: :default
|
|
|
|
@impl Oban.Worker
|
|
def perform(%Oban.Job{}) do
|
|
:ok
|
|
end
|
|
end
|
|
|
|
def job_fixture() do
|
|
{:ok, job} = Oban.insert(TestJobWorker.new(%{}))
|
|
|
|
job
|
|
end
|
|
end
|