mirror of
https://github.com/LukeHagar/pypistats.dev.git
synced 2025-12-06 04:21:09 +00:00
visibility timeout
This commit is contained in:
4
Makefile
4
Makefile
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "pypistatsorg"
|
||||
version = "7"
|
||||
version = "9"
|
||||
description = "Download counts dashboard for python packages"
|
||||
authors = ["Flynn <crf204@gmail.com>"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user