Download the PHP package honchoagency/craft-queue-bouncer without Composer

On this page you can find all versions of the php package honchoagency/craft-queue-bouncer. 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 craft-queue-bouncer

Queue Bouncer for Craft CMS

A Craft CMS plugin that prevents duplicate jobs from piling up in the queue. If a matching job is already pending or running, Queue Bouncer skips the callback silently.

The Problem

Cron-triggered jobs can overlap. For example if a regular FeedMe import takes longer than its cron interval, a second job gets queued before the first finishes. Over time this creates a backlog that compounds the problem.

Queue Bouncer sits in front of your cron commands and acts as a gatekeeper - only running the callback function if there are no matching jobs in the queue.

Configuration

Copy config.php to config/queuebouncer.php and define your guarded jobs:

Each top-level key is an identifier you pass to the console command. A config entry supports these keys:

Key Description
skipClasses Array of fully-qualified job class names. The callback is skipped if any are pending or running. Best for the simple case where the class name alone identifies the job.
skipIf A callable returning true to skip the callback. Use this when you need finer control — for example to allow concurrent jobs of the same class but different feeds. Takes precedence over skipClasses when present.
callback PHP callable invoked when the bouncer gives the green light. Omit it if you'd rather chain commands with && in cron.

Advanced: skipIf

skipIf is useful when skipClasses is too broad. For example, if you run separate imports for multiple FeedMe feeds and want each one guarded independently:

Both keys can run concurrently — feed-me-import-17 won't block feed-me-import-42.

Usage

Replace your existing cron command with the Queue Bouncer equivalent:

Queue Bouncer will:

  1. Evaluate skipIf (if configured) — if it returns true, exit cleanly.
  2. Otherwise check skipClasses — if any matching job is pending or running, exit cleanly.
  3. If neither condition triggered, invoke the callback.

License

MIT


All versions of craft-queue-bouncer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
craftcms/cms Version ^5.8.0
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 honchoagency/craft-queue-bouncer contains the following files

Loading the files please wait ...