(add-worker! routing-key)
Record a new worker.
Record a new worker.
(async->job chan)
Like wire-up/async->fire-and-forget-fn, returns a function that sends the appropriate message on the channel so it gets routed to the appropriate service. Except it also takes a function to call every time an event comes through. Returns the job's routing-key.
Like wire-up/async->fire-and-forget-fn, returns a function that sends the appropriate message on the channel so it gets routed to the appropriate service. Except it also takes a function to call every time an event comes through. Returns the job's routing-key.
(async->subjob chan)
Like async->job, but it's a 2-arity function that takes the routing-key as an arg.
Like async->job, but it's a 2-arity function that takes the routing-key as an arg.
(async=>rabbit chan rabbit-ch exchange routing-key)
A jobs-specific async=>rabbit for job handlers that publishes a ::complete message once the channel is closed.
A jobs-specific async=>rabbit for job handlers that publishes a ::complete message once the channel is closed.
(cancel! routing-key)
Cancel a job by its routing key.
Cancel a job by its routing key.
(complete! routing-key)
Record a completed worker.
Record a completed worker.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close