feat(federation): Implement queue for fetches

This commit is contained in:
Jesse Wierzbinski 2024-11-25 20:29:59 +01:00
parent 79cf43d752
commit 5fc6c4dcfa
No known key found for this signature in database
7 changed files with 122 additions and 26 deletions

View file

@ -274,6 +274,13 @@ remove_on_complete = 31536000
# Time in seconds to remove failed jobs
remove_on_failure = 31536000
# Control the fetch queue (for remote data refreshes)
[queues.fetch]
# Time in seconds to remove completed jobs
remove_on_complete = 31536000
# Time in seconds to remove failed jobs
remove_on_failure = 31536000
[federation]
# This is a list of domain names, such as "mastodon.social" or "pleroma.site"
# These changes will not retroactively apply to existing data before they were changed

View file

@ -3336,6 +3336,24 @@
"remove_on_complete": 31536000,
"remove_on_failure": 31536000
}
},
"fetch": {
"type": "object",
"properties": {
"remove_on_complete": {
"type": "integer",
"default": 31536000
},
"remove_on_failure": {
"type": "integer",
"default": 31536000
}
},
"additionalProperties": false,
"default": {
"remove_on_complete": 31536000,
"remove_on_failure": 31536000
}
}
},
"additionalProperties": false,
@ -3347,6 +3365,10 @@
"inbox": {
"remove_on_complete": 31536000,
"remove_on_failure": 31536000
},
"fetch": {
"remove_on_complete": 31536000,
"remove_on_failure": 31536000
}
}
},