kopia lustrzana https://github.com/snarfed/bridgy-fed
rodzic
8077a7f4ca
commit
5556f2756b
|
@ -0,0 +1,13 @@
|
||||||
|
# timezone defaults to UTC
|
||||||
|
# docs: https://cloud.google.com/appengine/docs/standard/python3/scheduling-jobs-with-cron-yaml
|
||||||
|
|
||||||
|
cron:
|
||||||
|
- description: ATProto poll posts
|
||||||
|
url: /queue/atproto-poll-posts
|
||||||
|
schedule: every 15 minutes
|
||||||
|
target: hub
|
||||||
|
|
||||||
|
- description: ATProto poll notifications
|
||||||
|
url: /queue/atproto-poll-notifs
|
||||||
|
schedule: every 15 minutes
|
||||||
|
target: hub
|
4
hub.py
4
hub.py
|
@ -60,11 +60,11 @@ lexrpc.flask_server.init_flask(arroba.server.server, app)
|
||||||
|
|
||||||
app.add_url_rule('/queue/atproto-poll-notifs',
|
app.add_url_rule('/queue/atproto-poll-notifs',
|
||||||
view_func=atproto.poll_notifications,
|
view_func=atproto.poll_notifications,
|
||||||
methods=['POST'])
|
methods=['GET', 'POST'])
|
||||||
|
|
||||||
app.add_url_rule('/queue/atproto-poll-posts',
|
app.add_url_rule('/queue/atproto-poll-posts',
|
||||||
view_func=atproto.poll_posts,
|
view_func=atproto.poll_posts,
|
||||||
methods=['POST'])
|
methods=['GET', 'POST'])
|
||||||
|
|
||||||
@app.post('/queue/atproto-commit')
|
@app.post('/queue/atproto-commit')
|
||||||
@flask_util.cloud_tasks_only
|
@flask_util.cloud_tasks_only
|
||||||
|
|
Ładowanie…
Reference in New Issue