Set priorities on tasks

This commit is contained in:
Mouse Reeve
2021-09-07 16:33:43 -07:00
parent 7b2e4eebd2
commit de3f18655c
10 changed files with 24 additions and 24 deletions

View File

@ -93,7 +93,7 @@ def is_blocked_activity(activity_json):
return models.FederatedServer.is_blocked(actor)
@app.task
@app.task(queue="medium_priority")
def activity_task(activity_json):
"""do something with this json we think is legit"""
# lets see if the activitypub module can make sense of this json