18 строки
766 B
Desktop File
18 строки
766 B
Desktop File
[Unit]
|
|
Description=Nextcloud Assistant fast background worker (task_processing pickup)
|
|
After=nextcloud.service
|
|
|
|
[Service]
|
|
# The 5-minute cron.php timer (nextcloud-cron.timer) leaves Assistant/AI
|
|
# tasks (OC\TaskProcessing\SynchronousBackgroundJob) waiting up to 5min
|
|
# before being picked up, which the Assistant UI shows as stuck polling
|
|
# check_generation. Loop this worker with a short timeout so the AI task
|
|
# queue is drained almost immediately; Restart=always relaunches it after
|
|
# each timeout instead of relying on one long-lived PHP process.
|
|
ExecStart=/usr/bin/podman exec -u www-data nextcloud php occ background-job:worker -t 55 "OC\TaskProcessing\SynchronousBackgroundJob"
|
|
Restart=always
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target default.target
|