Download the PHP package oat-sa/extension-tao-scheduler without Composer

On this page you can find all versions of the php package oat-sa/extension-tao-scheduler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package extension-tao-scheduler

Tao task scheduler

RRULE standard is used to configure time and recurrence rule of each job.

Install

Usage

attach a job:

Also cron notation may be used:

Note:

You can use any instance of callable type as callback except functions. In case if object is used ([$object, 'method']) make sure that object is instance of PhpSerializable.
Class name of oat\oatbox\action\Action instance may be used as a callback

detach a job:

All given parameters to detach function should be the same as in existing job.

Run JobRunner

Note:

Scheduled tasks may be executed even if their start date is later than timestamp given to job runner because they may be recurred and their start date is just a time of the first occurrence

If this parameter is omitted or less than 0 then start time will be taken from the storage (time of last seeking of scheduled job or time of last job runner iteration).
If there is no last iteration time in the storage current timestamp will be used.

Discover tasks to be run

Remove expired jobs from job storage (jobs which will not be executed anymore after given date):

To run tasks through the task queue you may use \oat\taoTaskQueue\scripts\tools\AddTaskToQueue action.

Note:

taoScheduler does not require taoTaskQueue extension. Make sure that task queue is installed.

Warnings

  1. Configure JobRunner service with common rds storage in case if scheduler is going to be run on multiserver environment.
  2. Please do not schedule tasks which execution of which requires a lot of resource or take long time. All the time/resources consuming tasks should create appropriate tasks in the task queue. Ideally scheduled tasks should do nothing except adding tasks to the task queue.
  3. Use cron syntax in case if number of occurrences is not limited.
  4. iCalendar syntax is more flexible but in case of large or unlimited number of repeats there may be performance issues. By default limit of repeats is 732. More information: https://github.com/simshaun/recurr

All versions of extension-tao-scheduler with dependencies

PHP Build Version
Package Version
Requires oat-sa/oatbox-extension-installer Version ~1.1||dev-master
hutnikau/job-scheduler Version ~0.6.1
oat-sa/generis Version >=15.22
oat-sa/tao-core Version >=50.24.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package oat-sa/extension-tao-scheduler contains the following files

Loading the files please wait ....