fix(tasks): 🚑 Disable call expiry.
This commit is contained in:
+15
-15
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user