Add fix to syntax highlights.

This commit is contained in:
Rajib Ahmed 2013-07-18 09:57:53 +02:00
parent 271b584957
commit 2d4458fbed

View File

@ -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: