No description
Find a file
2019-07-16 08:42:37 +00:00
config Add an ability to schedule jobs to be executed in the future. 2019-04-15 11:32:18 +03:00
lib Version bump 2019-07-16 08:42:37 +00:00
test Fix tests 2019-07-16 15:31:22 +07:00
.formatter.exs Initial 2019-03-28 17:18:43 +07:00
.gitignore Update .gitignore 2019-07-15 14:32:59 +03:00
.gitlab-ci.yml Update .gitlab-ci.yml 2019-04-15 08:25:21 +00:00
CHANGELOG.md Version bump 2019-07-16 08:42:37 +00:00
LICENSE Initial 2019-03-28 17:18:43 +07:00
mix.exs Version bump 2019-07-16 08:42:37 +00:00
mix.lock Add tests 2019-07-15 14:20:36 +03:00
README.md Version bump 2019-07-16 08:42:37 +00:00

🗳 Pleroma Job Queue

A lightweight job queue

Installation

Add pleroma_job_queue to your list of dependencies in mix.exs:

def deps do
  [
    {:pleroma_job_queue, "~> 0.3.0"}
  ]
end

Configuration

List your queues with max concurrent jobs like this:

config :pleroma_job_queue, :queues,
  my_queue: 100,
  another_queue: 50

Configure the scheduler like this:

config :pleroma_job_queue, :scheduler,
  enabled: true,
  poll_interval: :timer.seconds(10),
  store: PleromaJobQueue.Scheduler.Store.ETS
  • enabled - whether the scheduler is enabled (Default: false)
  • poll_interval - how often to check for scheduled jobs in milliseconds (Default: 10_000)
  • store - a module that stores scheduled jobs. It should implement the PleromaJobQueue.Scheduler.Store behavior. The default is an in-memory store based on ETS tables: PleromaJobQueue.Scheduler.Store.ETS.

The scheduler allows you to execute jobs at specific time in the future. By default it uses an in-memory ETS table which means the jobs won't be available after restart.

Usage

See documentation

Copyright © 2017-2019 Pleroma Authors

Pleroma Job Queue source code is licensed under the AGPLv3 License.