Liking cljdoc? Tell your friends :D


Enqueue jobs to sidekiq from clojure. Closely mirrors the official ruby sidekiq interface and supports job scheduling.


[clojure-sidekiq "0.1.0"]


  (:require [clojure-sidekiq.core :as sidekiq]))

(sidekiq/configure {:pool {} :spec {:host "" :port 6379 :db 3}) ;; optional

;; enqueuing a job
(sidekiq/enqueue "WorkerName" ["argument", "array"])

;; enqueuing to a specific queue with retry enabled
(sidekiq/enqueue "WorkerName" ["argument", "array"] {:queue "queue-name" :retry true})

Redis configuration mirros the configuration supported by Checkout Carmine for more details on redis configuration.


Copyright © 2016

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close