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 3165a0c commit 01b202d
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,35 @@ Install Django RQ Pulse::

Add it to your `INSTALLED_APPS`:

```python
INSTALLED_APPS = (
...
'django_rq_pulse.apps.DjangoRqPulseConfig',
...
)
```
.. code-block:: python
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
.. code-block:: 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"
# 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"
# 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
```
# 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 01b202d

Please sign in to comment.