fix(tasks): 🚑 Disable call expiry.

This commit is contained in:
Nyeki.py
2024-11-16 00:52:25 -03:00
parent 35884c0717
commit 5d3441a13e
4 changed files with 18 additions and 17 deletions
+15 -15
View File
@@ -19,21 +19,21 @@ spec:
limits:
memory: "1Gi"
cpu: "1"
- name: expire
image: git.nyeki.dev/payphone/payphone-tasks:latest
command: ["uv", "run", "--no-dev", "tasks.py", "expire"]
envFrom:
- secretRef:
name: bot-secrets
- configMapRef:
name: bot-config
resources:
requests:
memory: "250Mi"
cpu: "100m"
limits:
memory: "1Gi"
cpu: "1"
# - name: expire
# image: git.nyeki.dev/payphone/payphone-tasks:latest
# command: ["uv", "run", "--no-dev", "tasks.py", "expire"]
# envFrom:
# - secretRef:
# name: bot-secrets
# - configMapRef:
# name: bot-config
# resources:
# requests:
# memory: "250Mi"
# cpu: "100m"
# limits:
# memory: "1Gi"
# cpu: "1"
restartPolicy: Always
imagePullSecrets:
- name: regcred
+1 -1
View File
@@ -435,7 +435,7 @@ class Calls(base.Cog):
await webhook.edit_message(propagation_id, content=payload.data["content"])
@commands.message_command(name="Report Message")
@commands.message_command(name="Report Message" if not constants.IS_DEBUG else "(Dev) Report Message")
async def report_message(
self, ctx: discord.ApplicationContext, message: discord.Message
) -> None:
+1
View File
@@ -391,6 +391,7 @@ class CallHandler:
if last_message is not None:
continue
pipe.hdel("calls:last-message", call_id)
pipe.hdel("calls:channels:active", *channels)
pipe.hdel("calls:calls:active", call_id)
pipe.srem("calls:channels:searching", *channels)
Generated
+1 -1
View File
@@ -353,7 +353,7 @@ wheels = [
[[package]]
name = "payphone"
version = "0.19.0"
version = "0.20.0"
source = { virtual = "." }
dependencies = [
{ name = "aerich" },