From 7fef1b157170218156b500c61adec5d51aa48c01 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 17 Apr 2023 10:52:52 -0600 Subject: [PATCH 1/2] note 'delete_stale_devices_after' job always runs on main process I was prompted to add this little tidbit of information after receiving a question about it from an Element customer. --- docs/usage/configuration/config_documentation.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/usage/configuration/config_documentation.md b/docs/usage/configuration/config_documentation.md index c5c2c2b6152e..1b6f2569490e 100644 --- a/docs/usage/configuration/config_documentation.md +++ b/docs/usage/configuration/config_documentation.md @@ -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 From fa8570b1d458b64897e7e48ce09ccbf6f0409678 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 17 Apr 2023 10:54:57 -0600 Subject: [PATCH 2/2] changelog --- changelog.d/15452.doc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/15452.doc diff --git a/changelog.d/15452.doc b/changelog.d/15452.doc new file mode 100644 index 000000000000..330c90b3d672 --- /dev/null +++ b/changelog.d/15452.doc @@ -0,0 +1 @@ +Note that the `delete_stale_devices_after` background job always runs on the main process. \ No newline at end of file