Skip to content

Commit 8ab5f21

Browse files
authored
Update cron.md
1 parent 0d5959a commit 8ab5f21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/sections/cron.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Setting up the trigger cronjob
22

3-
As outlined in the [book](http://book.cakephp.org/3.0/en/console-and-shells/cron-jobs.html) you can easily set up a cronjob
3+
As outlined in the [book](https://book.cakephp.org/5/en/console-commands/cron-jobs.html#running-shells-as-cron-jobs) you can easily set up a cronjob
44
to start a new worker.
55

66
The following example uses "crontab":
@@ -9,12 +9,12 @@ The following example uses "crontab":
99

1010
Make sure you use `crontab -e -u www-data` to set it up as `www-data` user, and not as root etc.
1111

12-
This would start a new worker every 10 minutes. If you configure your max life time of a worker to 15 minutes, you
12+
This would start a new worker every 10 minutes. If you configure your max lifetime of a worker to 15 minutes, you
1313
got a small overlap where two workers would run simultaneously. If you lower the 10 minutes and raise the lifetime, you
1414
get quite a few overlapping workers and thus more "parallel" processing power.
1515
Play around with it, but just don't shoot over the top.
1616

1717
Also don't forget to set Configure key `'Queue.maxworkers'` to a reasonable value per server.
1818
If, for any reason, some of the jobs should take way longer, you want to avoid additional x workers to be started.
19-
It will then just not start now ones beyond this count until the already running ones are finished.
19+
It will then just not start new ones beyond this count until the already running ones are finished.
2020
This is an important server protection to avoid overloading.

0 commit comments

Comments
 (0)