Liking cljdoc? Tell your friends :D

co.gaiwan.cljesque

Jesque-based job queue

Allows enqueuing a simple Clojure function as a job. Job functions receive a map of injections as their first argument, passed in at worker startup, followed by any arguments that were provided when the job was enqueued.

Jesque-based job queue

Allows enqueuing a simple Clojure function as a job. Job functions receive a
map of injections as their first argument, passed in at worker startup,
followed by any arguments that were provided when the job was enqueued.
raw docstring

connectclj

(connect)
(connect {:keys [host port] :or {host "127.0.0.1" port 6379}})

Create a Jesque client with a Redis connection pool

Create a Jesque client with a Redis connection pool
raw docstring

end-clientclj

(end-client {:keys [client]})

Stop the client, close connections

Stop the client, close connections
raw docstring

enqueueclj

(enqueue {:keys [client]} queue var-name & args)

Enqueue a new job

Enqueue a new job
raw docstring

injecting-job-factoryclj

(injecting-job-factory injection-map)

Jedis Job factory. The job's "className" is treated as the fully qualified name of a clojure var/function. That functions will get called with the map of injections first, followed by the job arguments.

Jedis Job factory. The job's "className" is treated as the fully qualified
name of a clojure var/function. That functions will get called with the map of
injections first, followed by the job arguments.
raw docstring

jedis-poolclj

(jedis-pool config)

jobclj

(job var-name args)

Create a new job, the first argument is the fully qualified name of a Clojure var

Create a new job, the first argument is the fully qualified name of a Clojure
var
raw docstring

make-configclj

(make-config redis-host redis-port)

queue-info-daoclj

(queue-info-dao {:keys [config pool]})

queue-infosclj

(queue-infos opts)

run-worker!clj

(run-worker! config queues injections)

Create a new worker and run it on a new thread. Returns [worker thread]

Create a new worker and run it on a new thread. Returns [worker thread]
raw docstring

workerclj

(worker config queues injections)

Create a new Jedis worker instance

Create a new Jedis worker instance
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close