mirror of
https://github.com/idanoo/php-resque
synced 2025-07-16 21:11:54 +00:00
dequeue
This commit is contained in:
parent
e393d5672c
commit
4a97c14628
4 changed files with 204 additions and 31 deletions
16
README.md
16
README.md
|
@ -134,6 +134,22 @@ class My_Job
|
|||
}
|
||||
```
|
||||
|
||||
### Dequeueing Jobs ###
|
||||
|
||||
This method can be used to conveniently remove a job from a queue.
|
||||
|
||||
```php
|
||||
// Removes 'My_Job' of queue 'default'
|
||||
Resque::dequeue('default', ['My_Job']);
|
||||
```
|
||||
|
||||
If no jobs are given, this method will dequeue all jobs matching the provided queue.
|
||||
|
||||
```php
|
||||
// Removes all jobs of queue 'default'
|
||||
Resque::dequeue('default');
|
||||
```
|
||||
|
||||
### Tracking Job Statuses ###
|
||||
|
||||
php-resque has the ability to perform basic status tracking of a queued
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue