PHPackages                             activecollab/jobsqueuecommands - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. activecollab/jobsqueuecommands

ActiveLibrary[Queues &amp; Workers](/categories/queues)

activecollab/jobsqueuecommands
==============================

Active Collab job queue commands

138PHP

Since Jan 4Pushed 10y ago7 watchersCompare

[ Source](https://github.com/activecollab/jobsqueuecommands)[ Packagist](https://packagist.org/packages/activecollab/jobsqueuecommands)[ RSS](/packages/activecollab-jobsqueuecommands/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Jobs Queue Commands
===================

[](#jobs-queue-commands)

This package contains a couple of useful CLI commands that make work with `activecollab/jobsqueue` easier. Implemented commands are:

- `clear_failed_jobs` - Clear failed jobs losts
- `create_tables` - Create job queue tables (in case you are using MySQL queue)
- `enqueue` -&gt; Add job to the queue
- `failed_job_reasons` - Find job by type, and return all distinct reasons why it failed in the past
- `failed_jobs` - List content of failed jobs log
- `restore_failed_jobs` - Restore failed jobs by type
- `run_jobs` - Run jobs from the queue
- `run_queue_maintenance` - Perform queue maintenance (unstuck jobs, remove old logs etc)

Running Jobs
------------

[](#running-jobs)

This command is designed to be started and to execute jobs until a particular time limit is reached. This command supports following options:

- `--seconds` (`-s`) - How long should one call be kept alive and execute jobs (default value is 50 seconds),
- `--channels` (`-c`) - Channels that this command should pick jobs up from (default is `main` channel).

Check this example cron configuration:

```
*   *   *   *   *   /path/to/my/consumer run_jobs -s 180 -c main,mail

```

This command starts a consumer instance that listens on `mail` and `mail` channels every minute, and it is kept alive for 180 seconds. As a result, we always have three consumer instances running and executing jobs, which means that we can push quite a bit of work through them.

DI Container
------------

[](#di-container)

All commands expect that you provide them with `Interop\Container\ContainerInterface` DI container with following elements:

- `log` - Instance that implements `\Psr\Log\LoggerInterface` interface
- `dispatcher` - Instance that implements `\ActiveCollab\JobsQueue\DispatcherInterface` interface (usually `\ActiveCollab\JobsQueue\Dispatcher` instance)

Commands use these instances to perform the work that they need to do and DIC offers a convenient way to inject them.

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/729914?v=4)[Ilija Studen](/maintainers/ilijastuden)[@ilijastuden](https://github.com/ilijastuden)

---

Top Contributors

[![ilijastuden](https://avatars.githubusercontent.com/u/729914?v=4)](https://github.com/ilijastuden "ilijastuden (23 commits)")

### Embed Badge

![Health badge](/badges/activecollab-jobsqueuecommands/health.svg)

```
[![Health](https://phpackages.com/badges/activecollab-jobsqueuecommands/health.svg)](https://phpackages.com/packages/activecollab-jobsqueuecommands)
```

###  Alternatives

[uecode/qpush-bundle

Asynchronous processing for Symfony using Push Queues

1672.6M2](/packages/uecode-qpush-bundle)[mayconbordin/l5-stomp-queue

Stomp Queue Driver for Laravel 5

121.1k](/packages/mayconbordin-l5-stomp-queue)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
