Skip to content

Commit 1045de3

Browse files
committed
docs(ai): Update AI worker command
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent eb33b7d commit 1045de3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

admin_manual/ai/overview.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ Most AI tasks will be run as part of the background job system in Nextcloud whic
333333
To pick up scheduled jobs faster you can set up background job workers inside your Nextcloud main server/container that process AI tasks as soon as they are scheduled.
334334
If the PHP code or the Nextcloud settings values are changed while a worker is running, those changes won't be effective inside the runner. For that reason, the worker needs to be restarted regularly. It is done with a timeout of N seconds which means any changes to the settings or the code will be picked up after N seconds (worst case scenario). This timeout does not, in any way, affect the processing or the timeout of the AI tasks.
335335

336+
.. versionchanged:: 32.0.7
337+
The command to run the worker has changed from ``background-job:worker`` to ``taskprocessing:worker``. If you are running an older version of Nextcloud, please use the old command.
338+
336339
Screen or tmux session
337340
^^^^^^^^^^^^^^^^^^^^^^
338341

@@ -341,13 +344,13 @@ It would be best to run one command per screen session or per tmux window/pane t
341344

342345
.. code-block::
343346
344-
set -e; while true; do sudo -E -u www-data php occ background-job:worker -v -t 60 "OC\TaskProcessing\SynchronousBackgroundJob"; done
347+
set -e; while true; do sudo -E -u www-data php occ taskprocessing:worker -v -t 60; done
345348
346349
For Nextcloud-AIO you should use this command on the host server.
347350

348351
.. code-block::
349352
350-
set -e; while true; do docker exec -it nextcloud-aio-nextcloud sudo -E -u www-data php occ background-job:worker -v -t 60 "OC\TaskProcessing\SynchronousBackgroundJob"; done
353+
set -e; while true; do docker exec -it nextcloud-aio-nextcloud sudo -E -u www-data php occ taskprocessing:worker -v -t 60; done
351354
352355
You may want to adjust the number of workers and the timeout (in seconds) to your needs.
353356
The logs of the worker can be checked by attaching to the screen or tmux session.
@@ -379,7 +382,7 @@ Systemd service
379382
#!/bin/sh
380383
echo "Starting Nextcloud AI Worker $1"
381384
cd /path/to/nextcloud
382-
sudo -E -u www-data php occ background-job:worker -t 60 'OC\TaskProcessing\SynchronousBackgroundJob'
385+
sudo -E -u www-data php occ taskprocessing:worker -v -t 60
383386
384387
You may want to adjust the timeout to your needs (in seconds).
385388

0 commit comments

Comments
 (0)