Skip to content

Commit

Permalink
refac(server) makes non blocking the default
Browse files Browse the repository at this point in the history
  • Loading branch information
rsalmei committed Oct 3, 2018
1 parent a2853e8 commit 6b794a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ _Clearly Client_ used to be started without any server, which was convenient, bu

```python
>>> from clearly.server import start_server
>>> server = start_server('your_broker_url', blocking=False)
>>> server = start_server('your_broker_url')
```

Then you'll be able to use the client as below, pointing it to `localhost`!
Expand Down
4 changes: 2 additions & 2 deletions clearly/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ def server(**kwargs):
BROKER: The broker being used by celery, like "amqp://localhost".
"""
start_server(**{k: v for k, v in kwargs.items() if v})

start_server(**{k: v for k, v in kwargs.items() if v},
blocking=True)
2 changes: 1 addition & 1 deletion clearly/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def _setup_logging(debug): # pragma: no cover

def start_server(broker, backend=None, port=12223,
max_tasks=10000, max_workers=100,
blocking=True, debug=False): # pragma: no cover
blocking=False, debug=False): # pragma: no cover
"""Starts a Clearly Server programmatically."""
_setup_logging(debug)

Expand Down

0 comments on commit 6b794a8

Please sign in to comment.