Job Modules

Cím

OldNew
1Modules Jobs1Job Modules

Permalink

OldNew
1admin/modules_jobs1job_modules

Tartalom

OldNew
1# Modules: Background Jobs1# Modules: Background Jobs
22
3Background modules are processes that automatically fire up in the3Background modules are processes that automatically fire up in the background on your server.
4background on your server.4
55Without 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.
6Without the help of a [Cron Job](:cron_job), the modules are6
7pushed to run when someone is active on your site. If no one is browsing7Set 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.
8your site the jobs will be pushed as soon as someone is.8
99The minimum amount of minutes for the job engine to rest can be set under Settings -> Advanced.
10Set up a cron job to send a push for any jobs to run by placing a HTTP10
11request to . Note LiteCart will11Example of cron configuration using wget:
12not push any jobs if the last push was within the minimum time of rest.12
1313```
14The minimum amount of minutes for the job engine to rest can be set14*/5 * * * * wget -qO- https://www.yourstore.com/push_jobs &>/dev/null
15under Settings -> Advanced.15```
1616
17Example of cron configuration using wget:17Example using cURL:
1818```
19*/5 * * * * wget -qO-19*/5 * * * * curl --silent https://www.yourstore.com/push_jobs &>/dev/null
20 &>/dev/null20```
2121
22Example using cURL: */5 * * * * curl --silent22## See Also
23 &>/dev/null23
2424* [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