mirror of
https://github.com/idanoo/php-resque
synced 2025-06-30 21:22:20 +00:00
Add fix to syntax highlights.
This commit is contained in:
parent
271b584957
commit
2d4458fbed
1 changed files with 39 additions and 35 deletions
|
@ -150,13 +150,17 @@ To track the status of a job, pass `true` as the fourth argument to
|
|||
`Resque::enqueue`. A token used for tracking the job status will be
|
||||
returned:
|
||||
|
||||
```php
|
||||
$token = Resque::enqueue('default', 'My_Job', $args, true);
|
||||
echo $token;
|
||||
```
|
||||
|
||||
To fetch the status of a job:
|
||||
|
||||
```php
|
||||
$status = new Resque_Job_Status($token);
|
||||
echo $status->get(); // Outputs the status
|
||||
```
|
||||
|
||||
Job statuses are defined as constants in the `Resque_Job_Status` class.
|
||||
Valid statuses include:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue