Oban.Worker.perform
You're seeing just the callback
perform
, go back to Oban.Worker module for more information.
Specs
perform(job :: Oban.Job.t()) :: result()
The perform/1
function is called to execute a job.
Each perform/1
function should return :ok
or a success tuple. When the return is an error
tuple, an uncaught exception or a throw then the error is recorded and the job may be retried if
there are any attempts remaining.
Note that the args
map provided to perform/1
will always have string keys, regardless of
the key type when the job was enqueued. The args
are stored as jsonb
in PostgreSQL and the
serialization process automatically stringifies all keys.