New task checking if remote instance is reachable to avoid playback latence

This commit is contained in:
Petitminion 2022-06-30 18:04:04 +02:00 committed by Georg Krause
commit 0cb3457378
8 changed files with 92 additions and 1 deletions

View file

@ -862,6 +862,16 @@ CELERY_BEAT_SCHEDULE = {
"schedule": crontab(day_of_week="1", minute="0", hour="2"),
"options": {"expires": 60 * 60 * 24},
},
"federation.check_remote_instance_availability": {
"task": "federation.check_remote_instance_availability",
"schedule": crontab(
**env.dict(
"SCHEDULE_FEDERATION_CHECK_INTANCES_AVAILABILITY",
default={"minute": "0", "hour": "*"},
)
),
"options": {"expires": 60 * 60},
},
}
if env.bool("ADD_ALBUM_TAGS_FROM_TRACKS", default=True):