Verk.schedule
You're seeing just the function
schedule
, go back to Verk module for more information.
Specs
schedule( %Verk.Job{ args: term(), class: term(), created_at: term(), enqueued_at: term(), error_backtrace: term(), error_message: term(), failed_at: term(), finished_at: term(), jid: term(), max_retry_count: term(), original_json: term(), queue: term(), retried_at: term(), retry_count: term() }, %DateTime{ calendar: term(), day: term(), hour: term(), microsecond: term(), minute: term(), month: term(), second: term(), std_offset: term(), time_zone: term(), utc_offset: term(), year: term(), zone_abbr: term() }, GenServer.server() ) :: {:ok, binary()} | {:error, term()}
Schedules a Job to the specified queue returning the respective job id.
The job must have:
- a valid
queue
- a list of
args
to perform - a module to perform (
class
) - a valid
jid
Optionally a Redix server can be passed which defaults to Verk.Redis
.