Download the PHP package daanbiesterbos/job-queue-bundle without Composer

On this page you can find all versions of the php package daanbiesterbos/job-queue-bundle. 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 job-queue-bundle

JMSJobQueueBundle

Build Latest Stable Version Total Downloads

Installation

Register Bundle

Add the bundle to bundles.php:

Prepare Console Executable

Copy bin/console to bin/job-queue and use the JMSJobQueueBundle application instead the standard Symfony application.

Note that this is part of the original bundle. I would prefer a better solution that does not require an extra console. However, for now backward compatibility is more important considering the purpose of the fork.

Usage

Creating Jobs

Creating jobs is simple, you just need to persist an instance of Job:

Adding Dependencies Between Jobs

If you want to have a job run after another job finishes, you can also achieve this quite easily:

Schedule Job

If you want to schedule a job :

Fine-grained Concurrency Control through Queues

If you would like to better control the concurrency of a specific job type, you can use queues: Queues allow you to enforce stricter limits as to how many jobs are running per queue. By default, the number of jobs per queue is not limited as such queues will have no effect (jobs would just be processed in the order that they were created in). To define a limit for a queue, you can use the bundle?s configuration:

__ Note: Queue settings apply for each instance of the jms-job-queue:run command separately. There is no way to specify a global limit for all instances.

Prioritizing Jobs

By default, all jobs are executed in the order in which they are scheduled (assuming they are in the same queue). If you would like to prioritize certain jobs in the same queue, you can set a priority:

The priority is a simple integer - the higher the number, the sooner a job is executed.

Scheduled Jobs - JMSJobQueueBundle Documentation

This bundle also allows you to have scheduled jobs which are executed in certain intervals. This can either be achieved by implementing JMSJobQueueBundleCommandCronCommand in your command, or implementing JMSJobQueueBundleCronJobScheduler in a service and tagging the service with jms_job_queue.scheduler. The jobs are then scheduled with the jms-job-queue:schedule command that is run as an additional background process. You can also run multiple instances of this command to ensure high availability and avoid a single point of failure.

Implement CronCommand

For common intervals, you can also use one of the provided traits:

Implement JobScheduler

This is useful if you want to run a third-party command or a Symfony command as a scheduled command via this bundle.

Links


All versions of job-queue-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
symfony/framework-bundle Version ^4.4
symfony/debug Version ^4.4
symfony/process Version ^4.4
doctrine/doctrine-bundle Version ^2
symfony/twig-bundle Version ^4.4
symfony/form Version ^4.4
symfony/validator Version ^4.4
symfony/intl Version ^4.4
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 daanbiesterbos/job-queue-bundle contains the following files

Loading the files please wait ....