mirror of
https://github.com/versia-pub/server.git
synced 2026-03-12 21:39:15 +01:00
refactor(api): ⚡ Move media processing to background job
This commit is contained in:
parent
dcdc8c7365
commit
80b874e5fb
12 changed files with 242 additions and 119 deletions
|
|
@ -304,6 +304,13 @@ remove_on_complete = 31536000
|
|||
# Time in seconds to remove failed jobs
|
||||
remove_on_failure = 31536000
|
||||
|
||||
# Controls the media queue (for media processing)
|
||||
[queues.media]
|
||||
# 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
|
||||
|
|
|
|||
|
|
@ -3425,6 +3425,24 @@
|
|||
"remove_on_complete": 31536000,
|
||||
"remove_on_failure": 31536000
|
||||
}
|
||||
},
|
||||
"media": {
|
||||
"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,
|
||||
|
|
@ -3444,6 +3462,10 @@
|
|||
"push": {
|
||||
"remove_on_complete": 31536000,
|
||||
"remove_on_failure": 31536000
|
||||
},
|
||||
"media": {
|
||||
"remove_on_complete": 31536000,
|
||||
"remove_on_failure": 31536000
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue