Skip to content

Commit

Permalink
Fix markdown code block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Medhat Gayed committed Jan 23, 2018
1 parent 5d7add4 commit 3165a0c
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,33 @@ Install Django RQ Pulse::
Add it to your `INSTALLED_APPS`:

```python
INSTALLED_APPS = (
...
'django_rq_pulse.apps.DjangoRqPulseConfig',
...
)
INSTALLED_APPS = (
...
'django_rq_pulse.apps.DjangoRqPulseConfig',
...
)
```

Usage
--------

```python
# Check that rqworkers are running.
# If the actual number of workers is not equal the expected number of workers or
# If there are items in the queue but the queue size is not changing notify admins by email.
python manage.py rq_pulse_check
# The above command will run with default parameters where
# --expected-num-workers=2
# --seconds-to-sleep=5
# --num-retries=5
# --queue-name="default"
# You can override these values by passing any or all the parameters to the command like so:
python manage.py rq_pulse_check --expected-num-workers=3 --queue-name="high"
# To get a list of the command parameters use the --help parameter.
python manage.py rq_pulse_check --help
# Check that rqworkers are running.
# If the actual number of workers is not equal the expected number of workers or
# If there are items in the queue but the queue size is not changing notify admins by email.
python manage.py rq_pulse_check
# The above command will run with default parameters where
# --expected-num-workers=2
# --seconds-to-sleep=5
# --num-retries=5
# --queue-name="default"
# You can override these values by passing any or all the parameters to the command like so:
python manage.py rq_pulse_check --expected-num-workers=3 --queue-name="high"
# To get a list of the command parameters use the --help parameter.
python manage.py rq_pulse_check --help
```

Running Tests
Expand Down

0 comments on commit 3165a0c

Please sign in to comment.