Skip to content

Commit

Permalink
Enhances flower config
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Jan 1, 2024
1 parent 2492ffb commit 788016c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions API/api_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
celery = Celery("Raw Data API")
celery.conf.broker_url = celery_broker_uri
celery.conf.result_backend = celery_backend
celery.conf.task_serializer = "pickle"
celery.conf.result_serializer = "pickle"
celery.conf.accept_content = ["application/json", "application/x-python-serialize"]
# celery.conf.task_serializer = "json"
# celery.conf.result_serializer = "json"
# celery.conf.accept_content = ["application/json", "application/x-python-serialize"]
celery.conf.task_track_started = True
celery.conf.update(result_extended=True)

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ Raw Data API uses flower for monitoring the Celery distributed queue. Run this c
celery --broker=redis://redis:6379// --app API.api_worker flower --port=5000 --queues="raw_special,raw_default"
```

OR Simply use flower from application itself

```bash
celery --broker=redis://localhost:6379// flower
```

### Navigate to the docs to view Raw Data API endpoints

After sucessfully starting the server, visit [http://127.0.0.1:8000/v1/docs](http://127.0.0.1:8000/v1/docs) on your browser to view the API docs.
Expand Down

0 comments on commit 788016c

Please sign in to comment.