temporarily switch ATProto polling from hub to default service

for #954
pull/1020/head
Ryan Barrett 2024-05-04 20:52:13 -07:00
rodzic 0781a4c695
commit 0911d71e76
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
3 zmienionych plików z 14 dodań i 6 usunięć

8
app.py
Wyświetl plik

@ -10,3 +10,11 @@ import activitypub, atproto, convert, follow, pages, redirect, ui, webfinger, we
import models
models.reset_protocol_properties()
app.add_url_rule('/queue/atproto-poll-notifs',
view_func=atproto.poll_notifications,
methods=['GET', 'POST'])
app.add_url_rule('/queue/atproto-poll-posts',
view_func=atproto.poll_posts,
methods=['GET', 'POST'])

Wyświetl plik

@ -5,9 +5,9 @@ cron:
- description: ATProto poll posts
url: /queue/atproto-poll-posts
schedule: every 5 minutes
target: hub
target: default
- description: ATProto poll notifications
url: /queue/atproto-poll-notifs
schedule: every 5 minutes
target: hub
target: default

Wyświetl plik

@ -4,11 +4,11 @@ dispatch:
- url: "*/queue/atproto-commit"
service: hub
- url: "*/queue/atproto-poll-notifs"
service: hub
# - url: "*/queue/atproto-poll-notifs"
# service: hub
- url: "*/queue/atproto-poll-posts"
service: hub
# - url: "*/queue/atproto-poll-posts"
# service: hub
- url: "*/xrpc/com.atproto.sync.subscribeRepos"
service: hub