Skip to content
Browse files

Update readme

  • Loading branch information...
Blacksmoke16 committed Feb 16, 2019
1 parent 917963e commit 0e3b57f4d5442c195bf7b5a7f4f0a051b850ae18
Showing with 19 additions and 0 deletions.
  1. +19 −0
@@ -16,6 +16,7 @@ Mosquito currently provides these features:
- Automatic rescheduling of failed jobs
- Progressively increasing delay of failed jobs
- Dead letter queue of jobs which have failed too many times
- Rate limited jobs

Current Limitations:
- Job failure delay, maximum retry count, and several other variables cannot be easily configured.
@@ -121,6 +122,24 @@ Would produce this output:

More information: [periodic jobs on the wiki](

## Throttling Jobs

Jobs can be throttled to limit the number of messages that get executed within a given period of time. For example, if 10 messages were enqueued for `ThrottledJob` at one time; 5 would be executed immediately, then pause for a minute, then execute the last 5.

class ThrottledJob < Mosquito::QueuedJob
params message : String
throttle limit: 5, period: 60
def perform
puts message

## Connecting to Redis

Mosquito currently reads directly from the `REDIS_URL` environment variable to connect to redis. If no variable is set, it uses redis connection defaults to connect to redis on localhost.

0 comments on commit 0e3b57f

Please sign in to comment.
You can’t perform that action at this time.