fix(tasks): 🚑 Disable call expiry.
This commit is contained in:
+15
-15
@@ -19,21 +19,21 @@ spec:
|
|||||||
limits:
|
limits:
|
||||||
memory: "1Gi"
|
memory: "1Gi"
|
||||||
cpu: "1"
|
cpu: "1"
|
||||||
- name: expire
|
# - name: expire
|
||||||
image: git.nyeki.dev/payphone/payphone-tasks:latest
|
# image: git.nyeki.dev/payphone/payphone-tasks:latest
|
||||||
command: ["uv", "run", "--no-dev", "tasks.py", "expire"]
|
# command: ["uv", "run", "--no-dev", "tasks.py", "expire"]
|
||||||
envFrom:
|
# envFrom:
|
||||||
- secretRef:
|
# - secretRef:
|
||||||
name: bot-secrets
|
# name: bot-secrets
|
||||||
- configMapRef:
|
# - configMapRef:
|
||||||
name: bot-config
|
# name: bot-config
|
||||||
resources:
|
# resources:
|
||||||
requests:
|
# requests:
|
||||||
memory: "250Mi"
|
# memory: "250Mi"
|
||||||
cpu: "100m"
|
# cpu: "100m"
|
||||||
limits:
|
# limits:
|
||||||
memory: "1Gi"
|
# memory: "1Gi"
|
||||||
cpu: "1"
|
# cpu: "1"
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: regcred
|
- name: regcred
|
||||||
|
|||||||
@@ -435,7 +435,7 @@ class Calls(base.Cog):
|
|||||||
|
|
||||||
await webhook.edit_message(propagation_id, content=payload.data["content"])
|
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(
|
async def report_message(
|
||||||
self, ctx: discord.ApplicationContext, message: discord.Message
|
self, ctx: discord.ApplicationContext, message: discord.Message
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|||||||
@@ -391,6 +391,7 @@ class CallHandler:
|
|||||||
if last_message is not None:
|
if last_message is not None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
pipe.hdel("calls:last-message", call_id)
|
||||||
pipe.hdel("calls:channels:active", *channels)
|
pipe.hdel("calls:channels:active", *channels)
|
||||||
pipe.hdel("calls:calls:active", call_id)
|
pipe.hdel("calls:calls:active", call_id)
|
||||||
pipe.srem("calls:channels:searching", *channels)
|
pipe.srem("calls:channels:searching", *channels)
|
||||||
|
|||||||
Reference in New Issue
Block a user