fireproofsocks

fireproofsocks

Where is process/1 defined in Oban Pro

Working on an app with Oban Pro… I confess it’s a bit disorienting to navigate the docs for this because the pro stuff isn’t in the regular hexdocs (Oban — Oban v2.17.11); they’re in Overview — Oban Pro v1.4.10 and the version numbers seem inaccurate :thinking:

But that aside…

Where is the process/1 function defined? Our workers use Oban.Pro.Workers.Workflow, but inside that module there is no process/1 function or callback defined that I can find (see Oban.Pro.Workers.Workflow — Oban Pro v1.4.10). Examples are all over the docs page showing code snippets implementing that function, but if I look only at the source code, I might not realize that that is a valid function… I can’t seem to find its spec. Can someone point me to where this is documented? (And hopefully get a link or something added to the official docs?).

Thanks!

Most Liked

sorentwo

sorentwo

Oban Core Team

The Pro package is entirely separate from Oban itself. We used to colocate Pro guides with the regular hexdocs, but it was impossible to display module docs with types, functions, etc. Since then Pro, Web, and Met have their own dedicated docs with guides and module docs.

All of the Pro module docs are available through the MODULES sidebar navigation where they’re organized into engines, extensions, plugins, and workers.

The perform/1 callback is defined in the OSS Oban.Worker. All Pro workers use process/1 instead, as defined in Oban.Pro.Worker. There’s a section about migrating to process/1 in the Adoption Guide.

Take a look at Oban.Pro.Worker :slightly_smiling_face:

sorentwo

sorentwo

Oban Core Team

That’s because it’s only defined for Oban.Pro.Worker in the oban_pro docs, not the oban hexdocs. Sorry, as configurable as ex_doc is, the docs can’t be colocated.

Where Next?

Popular in Questions Top

sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
logicmason
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
Kagamiiiii
Student & New to elixir. Nice language. I want to convert a english character, e.g. “a”, which is stored in a variable, to it’s asci...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

Other popular topics Top

lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New

We're in Beta

About us Mission Statement