PHPackages                             auguzsto/job - 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. auguzsto/job

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

auguzsto/job
============

A simple and elegant tool for running background processes without the need for external libraries.

1.0.8(8mo ago)01131MITPHPPHP &gt;=8.3CI passing

Since Aug 22Pushed 8mo agoCompare

[ Source](https://github.com/auguzsto/job)[ Packagist](https://packagist.org/packages/auguzsto/job)[ RSS](/packages/auguzsto-job/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (2)Versions (12)Used By (1)

About
=====

[](#about)

A job executes a method in the background. If there are too many jobs for too few workers, there will be competition. When a worker is free, the job will dispatch the task to that free worker.

A PID is created for each registered worker. The worker checks for tasks to be performed. In other words, worker = PID.

**By default, the worker limit is 10.**

[![](https://github.com/auguzsto/job/raw/main/images/design.png?raw=true)](https://github.com/auguzsto/job/blob/main/images/design.png?raw=true)

Requirements
============

[](#requirements)

- PHP &gt;= 8.3
- Linux

Install
=======

[](#install)

```
composer require auguzsto/job
```

Simple example
==============

[](#simple-example)

Simulating a very time-consuming request.

```
