Skip to content

Commit

Permalink
Adding documentation for WORKING command
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano committed May 15, 2015
1 parent 77077f3 commit 668ab93
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -798,3 +798,28 @@ Example call:
$details = $client->show('jobid1');
var_dump($details);
```

### working

Claims to be still working with the specified job, and asks Disque to postpone
the next time it will deliver again the job. Signature:

```php
working(string $id): int
```

Arguments:

* `string $id`: job ID

Return value:

* `int`: Number of seconds you (likely) postponed the message visibility for
other workers. See [Disque's API](https://github.com/antirez/disque#api).

Example call:

```php
$seconds = $client->working('jobid1');
var_dump($seconds);
```

0 comments on commit 668ab93

Please sign in to comment.