Core.JobStore.Memory (ServCore v0.3.0)

Copy Markdown View Source

In-memory job store that retains jobs for the lifetime of the VM.

Jobs are stored in an Agent and survive JobQueue restarts, but are lost when the entire VM exits. Suitable for prototyping and testing.

When used with multiple named queues, pass a unique :name in store_opts so each queue gets its own isolated Agent:

{Core.Workers.JobQueue,
  name: MyApp.Queue,
  store: Core.JobStore.Memory,
  store_opts: [name: :my_app_queue_store]}

Options