mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
Add fix to syntax highlights.
This commit is contained in:
parent
271b584957
commit
2d4458fbed
@ -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
|
`Resque::enqueue`. A token used for tracking the job status will be
|
||||||
returned:
|
returned:
|
||||||
|
|
||||||
|
```php
|
||||||
$token = Resque::enqueue('default', 'My_Job', $args, true);
|
$token = Resque::enqueue('default', 'My_Job', $args, true);
|
||||||
echo $token;
|
echo $token;
|
||||||
|
```
|
||||||
|
|
||||||
To fetch the status of a job:
|
To fetch the status of a job:
|
||||||
|
|
||||||
|
```php
|
||||||
$status = new Resque_Job_Status($token);
|
$status = new Resque_Job_Status($token);
|
||||||
echo $status->get(); // Outputs the status
|
echo $status->get(); // Outputs the status
|
||||||
|
```
|
||||||
|
|
||||||
Job statuses are defined as constants in the `Resque_Job_Status` class.
|
Job statuses are defined as constants in the `Resque_Job_Status` class.
|
||||||
Valid statuses include:
|
Valid statuses include:
|
||||||
|
Loading…
Reference in New Issue
Block a user