]> Git — Sourcephile - sourcephile-nix.git/blob - nixpkgs/overlays/sourcehut/metasrht.patch
mermet: nginx: sourcephile.fr: add /temp
[sourcephile-nix.git] / nixpkgs / overlays / sourcehut / metasrht.patch
1 From a1cfe9411b5e63fe96732f9530d20ed7cbdd44c6 Mon Sep 17 00:00:00 2001
2 From: Julien Moutinho <julm@sourcephile.fr>
3 Date: Sat, 21 Aug 2021 07:08:22 +0200
4 Subject: [PATCH] Use dedicated metasrht-webhooks Celery queue for webhooks
5
6 ---
7 metasrht/webhooks.py | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/metasrht/webhooks.py b/metasrht/webhooks.py
11 index 3f0ba01..8554ba5 100644
12 --- a/metasrht/webhooks.py
13 +++ b/metasrht/webhooks.py
14 @@ -8,7 +8,7 @@ if not hasattr(db, "session"):
15 from srht.webhook import Event
16 from srht.webhook.celery import CeleryWebhook, make_worker
17
18 -worker = make_worker(broker=cfg("meta.sr.ht", "webhooks", "redis://"))
19 +worker = make_worker("metasrht", broker=cfg("meta.sr.ht", "webhooks", "redis://"))
20
21 class UserWebhook(CeleryWebhook):
22 events = [
23 --
24 2.32.0
25