Download the PHP package madlab/multi-server-scheduling without Composer

On this page you can find all versions of the php package madlab/multi-server-scheduling. 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 multi-server-scheduling

Multi Server Scheduling

This package extends Laravel's native task scheduling to include the ability to lock events and block them from overlapping when in a multi webserver environment.

It works similarly to Laravel's withoutOverlapping feature, except the lockfile is written to Cache as opposed to the local filesystem, and each server generates a unique key to lock the command.

In order to prevent a condition where a short-running command's lock doesn't last long enough, we are implementing a minimum 10 second break between the completion of the command and its next execution time, so if a command runs every minute but takes between 50 and 59 seconds to complete, the next command will be delayed one more minute. We also automatically expire any locks after 1 hour.

You may also enable logging to Laravel's logfile, so that you can ensure things are working correctly.

Installation

The new scheduler uses Laravel's cache to track which server is currently executing an event. You must make sure you have configured a cache driver that is distributed and accessible by all servers (like memcache or redis).

Now we want to change the default schedule IoC to use this alternate one. In app\Console\Kernel.php add the following function:

Usage

When composing your schedule, simply add "withoutOverlappingCache()" to the command, i.e.

This will prevent multiple servers from executing the same event at the same time.

Logging

When intitializing the Scheduler in app\Console\Kernal.php, you may pass in 3 different logging levels:

Support

This was made by Nick Ashley at MadLab, LLC and if you need paid support you can contact us at MadLab.com.


All versions of multi-server-scheduling with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
laravel/framework Version >=5.1
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 madlab/multi-server-scheduling contains the following files

Loading the files please wait ....