Skip to content

Commit

Permalink
remove celery
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon committed Apr 16, 2020
1 parent 97e87a8 commit 44c5ff3
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 44 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ install:
before_script:
- psql -c 'create database anyway;' -U postgres
- alembic upgrade head
- celery worker -A anyway.clusters_calculator -D

script:
- pylint -j $(nproc) anyway tests main.py
Expand Down
1 change: 0 additions & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
web: NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program gunicorn anyway:app
worker: celery worker -A anyway.clusters_calculator
2 changes: 0 additions & 2 deletions anyway/clusters_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import time
from .models import AccidentMarker
from .pymapcluster import calculate_clusters
from .task_queue import task_queue

@task_queue.task
def retrieve_clusters(**kwargs):
start_time = time.time()
result = AccidentMarker.bounding_box_query(is_thin=True, **kwargs)
Expand Down
39 changes: 0 additions & 39 deletions anyway/task_queue.py

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ requests
setuptools
click
six
celery[redis]
openpyxl
enum34
feedparser
Expand Down

0 comments on commit 44c5ff3

Please sign in to comment.