Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
README.md

resque-clojure

Resque (pronounced like "rescue") is a Redis-backed library for creating background jobs, placing those jobs on multiple queues, and processing them later. It was originally developed for the ruby language. https://github.com/defunkt/resque

Resque-clojure is a clojure-based implementation of the same protocol. It aims to be fully interoperable with the original project.

Installation

[resque-clojure "0.3.0"]

Usage

(ns my.test
  (:require [resque-clojure.core :as resque]))

(resque/configure {:host "localhost" :port 6379}) ;; optional

;; creating a job
(resque/enqueue "testqueue" "clojure.core/println" "hello" "resque")

;; listening for jobs
(resque/start ["testqueue"])

TODO

  • add resque:stat:* keys
  • add resque-status as an option/plugin

License

Released under the MIT license. Please see LICENSE file.

Something went wrong with that request. Please try again.