Make nodeinfo refresh task schedule configurable

This commit is contained in:
Eliot Berriot 2019-12-11 10:20:13 +01:00
parent dd9cca432d
commit 6c06b48bff
No known key found for this signature in database
GPG Key ID: 6B501DFD73514E14
1 changed files with 6 additions and 1 deletions

View File

@ -589,7 +589,12 @@ CELERY_BEAT_SCHEDULE = {
},
"federation.refresh_nodeinfo_known_nodes": {
"task": "federation.refresh_nodeinfo_known_nodes",
"schedule": crontab(minute="0", hour="*"),
"schedule": crontab(
**env.dict(
"SCHEDULE_FEDERATION_REFRESH_NODEINFO_KNOWN_NODES",
default={"minute": "0", "hour": "*"},
)
),
"options": {"expires": 60 * 60},
},
}