Expose scheduled website jobs in the hosting panel
This commit is contained in:
1 parent
92fea45f84
commit
30f19727c5
12 files changed
+646
-6
No files matched your search
@@ -710,6 +710,50 @@ links and files with multiple hard links. Uploads accept one file of up to
|
||||
Uploads and renames require an unused name in the current folder. A
|
||||
separate confirmation is required to delete a file or an empty folder.
|
||||
|
||||
## Enable scheduled website jobs
|
||||
|
||||
The scheduled job worker runs on the same server as the panel and web
|
||||
node. Install the local socket and Celery worker on that server.
|
||||
|
||||
```sh
|
||||
sudo groupadd --system coulobre-website-job-requests
|
||||
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
|
||||
--shell /usr/sbin/nologin coulobre-website-job-worker
|
||||
sudo install -m 0644 deploy/systemd/coulobre-website-jobs.socket \
|
||||
deploy/systemd/coulobre-website-jobs@.service \
|
||||
deploy/systemd/coulobre-website-job-worker.service /etc/systemd/system/
|
||||
```
|
||||
|
||||
Set `COULOBRE_WEBSITE_JOBS=1` in `/etc/coulobre/panel.env`.
|
||||
|
||||
```sh
|
||||
panel_manage migrate --noinput
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable --now coulobre-website-job-worker.service
|
||||
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
|
||||
```
|
||||
|
||||
Set **Website job limit** to the number of saved jobs allowed per hosting
|
||||
account. Paused jobs count toward the saved limit. The default is zero.
|
||||
If you lower a limit, the oldest enabled jobs retain their places until
|
||||
the account removes or pauses jobs. Add `website-jobs` to the local service
|
||||
health list if you monitor this worker from the panel.
|
||||
|
||||
Customers and their assigned resellers can open **Scheduled jobs** from the
|
||||
account page. Operators need both **Can view hosting account** and **Can
|
||||
manage scheduled website jobs**. Pick the primary or an active independent
|
||||
website. Use five cron fields in UTC. For example, `*/15 * * * *` runs every
|
||||
15 minutes. Runs must be at least five minutes apart. When both day fields
|
||||
are restricted, the date must match both.
|
||||
|
||||
The job runs as the website's Unix user in its document root with a
|
||||
60-second deadline. To use the site's selected PHP series, install its PHP
|
||||
CLI package and enter a command such as `"$PHP_CLI" tasks/refresh.php`.
|
||||
The panel shows the last result, including the exit code if the node
|
||||
reported one. Command output is discarded. A run missed by over 90 seconds
|
||||
is skipped, and a run with an unconfirmed result is never replayed.
|
||||
Suspended and retired sites are ineligible for new runs.
|
||||
|
||||
## Enable HTTPS for hosted websites
|
||||
|
||||
Once a site is active, obtain the website certificate with Certbot on the
|
||||
|
||||
Reference in new issue
Block a user