mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 10:19:25 +02:00
Make nodeinfo refresh task schedule configurable
This commit is contained in:
parent
dd9cca432d
commit
6c06b48bff
1 changed files with 6 additions and 1 deletions
|
@ -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},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue