Represents a job instance that can be directly executed.
Created by MyJob.new(args) and executed with .perform.
MyJob.new(args)
.perform
Creates a new job instance.
Executes the job directly without enqueueing.
@type t() :: %GoodJob.Job.Instance{ args: map() | list() | term(), job_module: module(), options: keyword() }
@spec perform(t()) :: term()
Similar to Rails ActiveJob's job.perform.
job.perform
job = MyJob.new(%{data: "hello"}) job.perform()