Content deleted Content added
Remove failed verification |
|||
(44 intermediate revisions by 29 users not shown) | |||
Line 1:
{{multiple issues|
{{Refimprove|date=December 2010}}
{{Primary sources|date=December 2010}}
}}
'''webcron''' is the term for a time-based [[job scheduler]] hosted on a [[web server]].
== Overview ==
Many web hosts
A webcron solution is made up of two pieces.
Before setting up a schedule with a scheduling provider, a user must set up a script that runs on the web server.
▲A webcron solution is made up of two pieces. The first piece is a script that will execute the tasks that resides somewhere accessible via a [[URL]]. The second piece is to use a scheduling provider that contacts the URL of the script at regular intervals.
▲Before setting up a schedule with a scheduling provider, a user must set up a script that runs on the web server. Most{{which?|date=December 2010}} web hosts have restrictions on the length of time a single instance of a script may execute. Many{{which?|date=December 2010}} web hosts also have limitations on [[CPU]] and [[RAM]] resource usage. Users of webcron solutions on [[shared hosting]] providers must be careful to not repeatedly exceed their web host's limitations so as to not get kicked off. A script that runs a long time must take into account that it may be terminated at any point by a web server process. Users may implement a [[state machine]], which allows the script to operate across multiple invocations and run within the limitations imposed by a web host.<ref name="WebCronDoc" />{{psc|date=December 2010}}
== Scheduling Providers ==
=== Third-Party ===
There are
Some webcron service providers accept [[CRON expression]] in web interface to schedule the job executing time.<ref name=webcronCronExp>[https://www.easycron.com/faq/What-cron-expression-does-easycron-support EasyCron accepts cron expression]</ref><ref name=setcron2>[https://www.setcron.com/help#crontab-features What are the crontab features of SetCron?]</ref>
=== Visitor Based ===
A webcron solution can be contained entirely on a web host by letting visitors trigger a webcron scheduler script on the server. For
If there are insufficient visitors to a website using visitor based webcron scheduling, then scheduled tasks will not run on time.
Since visitor based webcron scheduling enables the possibility of self-contained webcron solutions, it increases the portability of a website or web-based software product.
=== Remote Access ===
A remote access capable webcron solution is typically{{
Remote access usually{{
A typical{{
=== Local Access ===
A webcron solution can be used on hosts that already have cron available.
In the case of a remote access capable webcron solution, cron can run the client component to execute the script.
== Security Concerns ==
Since webcron solutions involve availability via a URL, there are several different security concerns that users should address.
When using a third-party scheduling provider, users trust the third-party to not misuse the URL in any way.
When using a visitor based scheduling provider, users may inadvertently provide a possible venue for denial-of-service attacks.
When using a remote access scheduling provider, users usually{{
== References ==
{{Reflist}}
▲[[Category:Software]]
|