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 # port forward flower
pfflower: 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 # port forward web
pfweb: 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: spec:
containers: containers:
- name: pypistats-flower - name: pypistats-flower
image: us.gcr.io/pypistats-org/pypistats:7 image: us.gcr.io/pypistats-org/pypistats:9
imagePullPolicy: Always imagePullPolicy: Always
args: ["flower"] args: ["flower"]
envFrom: envFrom:

View File

@@ -20,14 +20,14 @@ spec:
spec: spec:
containers: containers:
- name: beat - name: beat
image: us.gcr.io/pypistats-org/pypistats:7 image: us.gcr.io/pypistats-org/pypistats:9
imagePullPolicy: Always imagePullPolicy: Always
args: ["beat"] args: ["beat"]
envFrom: envFrom:
- secretRef: - secretRef:
name: pypistats-secrets name: pypistats-secrets
- name: celery - name: celery
image: us.gcr.io/pypistats-org/pypistats:7 image: us.gcr.io/pypistats-org/pypistats:9
imagePullPolicy: Always imagePullPolicy: Always
args: ["celery"] args: ["celery"]
envFrom: envFrom:

View File

@@ -20,7 +20,7 @@ spec:
spec: spec:
initContainers: initContainers:
- name: migrate - name: migrate
image: us.gcr.io/pypistats-org/pypistats:7 image: us.gcr.io/pypistats-org/pypistats:9
imagePullPolicy: Always imagePullPolicy: Always
envFrom: envFrom:
- secretRef: - secretRef:
@@ -28,7 +28,7 @@ spec:
args: ["migrate"] args: ["migrate"]
containers: containers:
- name: web - name: web
image: us.gcr.io/pypistats-org/pypistats:7 image: us.gcr.io/pypistats-org/pypistats:9
imagePullPolicy: Always imagePullPolicy: Always
envFrom: envFrom:
- secretRef: - secretRef:

View File

@@ -21,6 +21,7 @@ class Config:
APP_DIR = os.path.abspath(os.path.dirname(__file__)) APP_DIR = os.path.abspath(os.path.dirname(__file__))
CELERY_BROKER_URL = (os.environ.get("CELERY_BROKER_URL"),) CELERY_BROKER_URL = (os.environ.get("CELERY_BROKER_URL"),)
BROKER_TRANSPORT_OPTIONS = {"visibility_timeout": 86400}
CELERY_IMPORTS = "pypistats.tasks.pypi" CELERY_IMPORTS = "pypistats.tasks.pypi"
CELERYBEAT_SCHEDULE = { CELERYBEAT_SCHEDULE = {
"update_db": {"task": "pypistats.tasks.pypi.etl", "schedule": crontab(minute=0, hour=1)} # 1am UTC "update_db": {"task": "pypistats.tasks.pypi.etl", "schedule": crontab(minute=0, hour=1)} # 1am UTC

View File

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