-
Notifications
You must be signed in to change notification settings - Fork 11
Getting Started
akshat edited this page Jul 28, 2022
·
11 revisions
- Clojure >= 1.11.0
- Redis
Clojure CLI/deps.edn
com.nilenso/goose {:mvn/version "0.1"}
Leiningen/Boot
[com.nilenso/goose "0.1"]
(ns my-app
(:require [goose.client :as c]))
(defn my-fn
[arg1 arg2]
(println "my-fn called with" arg1 arg2))
(c/perform-async c/default-opts `my-fn "foo" :bar)
(ns my-worker
(:require [goose.worker :as w]))
(let [worker (w/start w/default-opts)]
; ... listen for SIGINT or SIGTERM ...
(w/stop worker))
Refer to relevant wikis for Broker Config, Worker Config, Scheduling a Job, Error Handling & Retries, Middleware linked on the home page.
Goose Jobs can be managed using API as well.
Home | Getting Started | RabbitMQ | Redis | Error Handling | Monitoring | Production Readiness | Troubleshooting
Need help? Open an issue or ping us on #goose @Clojurians slack.