Cím
Old | New |
---|
1 | Modules Jobs | 1 | Job Modules |
---|
Permalink
Old | New |
---|
1 | admin/modules_jobs | 1 | job_modules |
---|
Tartalom
Old | New |
---|
1 | # Modules: Background Jobs | 1 | # Modules: Background Jobs
|
---|
2 | | 2 |
|
---|
3 | Background modules are processes that automatically fire up in the | 3 | Background modules are processes that automatically fire up in the background on your server.
|
---|
4 | background on your server. | 4 |
|
---|
5 | | 5 | Without the help of a [Cron](cron) Job, the modules are pushed to run when someone is active on your site. If no one is browsing your site the jobs will be pushed as soon as someone is.
|
---|
6 | Without the help of a [Cron Job](:cron_job), the modules are | 6 |
|
---|
7 | pushed to run when someone is active on your site. If no one is browsing | 7 | Set up a cron job to send a push for any jobs to run by placing a HTTP request to http://www.yoursite.com/push_jobs.php. Please note that LiteCart will not push any jobs if the last push was within the minimum time of rest.
|
---|
8 | your site the jobs will be pushed as soon as someone is. | 8 |
|
---|
9 | | 9 | The minimum amount of minutes for the job engine to rest can be set under Settings -> Advanced.
|
---|
10 | Set up a cron job to send a push for any jobs to run by placing a HTTP | 10 |
|
---|
11 | request to . Note LiteCart will | 11 | Example of cron configuration using wget:
|
---|
12 | not push any jobs if the last push was within the minimum time of rest. | 12 |
|
---|
13 | | 13 | ```
|
---|
14 | The minimum amount of minutes for the job engine to rest can be set | 14 | */5 * * * * wget -qO- https://www.yourstore.com/push_jobs &>/dev/null
|
---|
15 | under Settings -> Advanced. | 15 | ```
|
---|
16 | | 16 |
|
---|
17 | Example of cron configuration using wget: | 17 | Example using cURL:
|
---|
18 | | 18 | ```
|
---|
19 | */5 * * * * wget -qO- | 19 | */5 * * * * curl --silent https://www.yourstore.com/push_jobs &>/dev/null
|
---|
20 | &>/dev/null | 20 | ```
|
---|
21 | | 21 |
|
---|
22 | Example using cURL: */5 * * * * curl --silent | 22 | ## See Also
|
---|
23 | &>/dev/null | 23 |
|
---|
24 | | 24 | * [Create a Job Module](how_to_create_a_job_module) |
---|
25 | [Create a Job Module](:how_to_create_a_job_module) | | |
---|
Edited by tim on 16 jan. 2024 at 22:49