Add a note to the config documentation that the 'delete_stale_devices_after' job always runs on the main process (#15452)

This commit is contained in:
Andrew Morgan 2023-04-17 18:16:02 -06:00 committed by GitHub
parent e12d788bb7
commit 929797d939
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

1
changelog.d/15452.doc Normal file
View file

@ -0,0 +1 @@
Note that the `delete_stale_devices_after` background job always runs on the main process.

View file

@ -577,6 +577,10 @@ delete any device that hasn't been accessed for more than the specified amount o
Defaults to no duration, which means devices are never pruned.
**Note:** This task will always run on the main process, regardless of the value of
`run_background_tasks_on`. This is due to workers currently not having the ability to
delete devices.
Example configuration:
```yaml
delete_stale_devices_after: 1y