Que.Server (Que v0.12.0)

Copy Markdown View Source

Que.Server is the GenServer responsible for processing all Jobs.

This GenServer oversees the Workers performing their Jobs and handles their success and failure callbacks. You shouldn't call any of this module's methods directly. Instead use the methods exported by the base Que module.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the Job Server

Stops the Job Server

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(worker)

@spec start_link(worker :: Que.Worker.t()) :: GenServer.on_start()

Starts the Job Server

stop(worker)

@spec stop(worker :: Que.Worker.t()) :: :ok

Stops the Job Server