ecto_job v2.1.0 EctoJob.WorkerSupervisor View Source

GenStage ConsumerSupervisor that will spawn EctoJob.Worker tasks for jobs.

Link to this section Summary

Functions

Starts the ConsumerSupervisor

Link to this section Functions

Link to this function

start_link(list) View Source
start_link(config: EctoJob.Config.t(), subscribe_to: Keyword.t()) ::
  Supervisor.on_start()

Starts the ConsumerSupervisor

  • config : The JobQueue configuration, used for Repo, Logging options
  • subscribe_opts : Should contain [{producer_name, max_demand: max_demand}]