Skip to content

Commit

Permalink
visibility timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
crflynn committed Apr 9, 2021
1 parent e956165 commit e44f394
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ deploy:

# port forward flower
pfflower:
open http://localhost:7777 && kubectl get pods -n pypistats | grep flower | awk '{print $$1}' | xargs -I % kubectl port-forward % 7777:5555
open http://localhost:7777 && kubectl get pods -n pypistats | grep flower | awk '{print $$1}' | xargs -I % kubectl port-forward -n pypistats % 7777:5555

# port forward web
pfweb:
open http://localhost:7000 && kubectl get pods -n pypistats | grep web | awk '{print $$1}' | xargs -I % kubectl port-forward % 7000:5000
open http://localhost:7000 && kubectl get pods -n pypistats | grep web | awk '{print $$1}' | xargs -I % kubectl port-forward -n pypistats % 7000:5000
2 changes: 1 addition & 1 deletion kubernetes/flower.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
spec:
containers:
- name: pypistats-flower
image: us.gcr.io/pypistats-org/pypistats:7
image: us.gcr.io/pypistats-org/pypistats:9
imagePullPolicy: Always
args: ["flower"]
envFrom:
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ spec:
spec:
containers:
- name: beat
image: us.gcr.io/pypistats-org/pypistats:7
image: us.gcr.io/pypistats-org/pypistats:9
imagePullPolicy: Always
args: ["beat"]
envFrom:
- secretRef:
name: pypistats-secrets
- name: celery
image: us.gcr.io/pypistats-org/pypistats:7
image: us.gcr.io/pypistats-org/pypistats:9
imagePullPolicy: Always
args: ["celery"]
envFrom:
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ spec:
spec:
initContainers:
- name: migrate
image: us.gcr.io/pypistats-org/pypistats:7
image: us.gcr.io/pypistats-org/pypistats:9
imagePullPolicy: Always
envFrom:
- secretRef:
name: pypistats-secrets
args: ["migrate"]
containers:
- name: web
image: us.gcr.io/pypistats-org/pypistats:7
image: us.gcr.io/pypistats-org/pypistats:9
imagePullPolicy: Always
envFrom:
- secretRef:
Expand Down
1 change: 1 addition & 0 deletions pypistats/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Config:

APP_DIR = os.path.abspath(os.path.dirname(__file__))
CELERY_BROKER_URL = (os.environ.get("CELERY_BROKER_URL"),)
BROKER_TRANSPORT_OPTIONS = {"visibility_timeout": 86400}
CELERY_IMPORTS = "pypistats.tasks.pypi"
CELERYBEAT_SCHEDULE = {
"update_db": {"task": "pypistats.tasks.pypi.etl", "schedule": crontab(minute=0, hour=1)} # 1am UTC
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pypistatsorg"
version = "7"
version = "9"
description = "Download counts dashboard for python packages"
authors = ["Flynn <[email protected]>"]

Expand Down

0 comments on commit e44f394

Please sign in to comment.