visibility timeout

This commit is contained in:
flynn
2021-04-08 20:18:16 -04:00
parent e956165572
commit e44f3944da
6 changed files with 9 additions and 8 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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:

View File

@@ -20,7 +20,7 @@ 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:
@@ -28,7 +28,7 @@ spec:
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:

View File

@@ -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

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "pypistatsorg"
version = "7"
version = "9"
description = "Download counts dashboard for python packages"
authors = ["Flynn <crf204@gmail.com>"]