Skip to content

Commit

Permalink
Descriptions added to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Jan 12, 2016
1 parent 715147d commit 3703229
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Inspired by [TechCrunch WP Asynchronous Tasks](https://github.com/techcrunch/wp-

### Async Request

Async requests are useful for pushing slow one-off tasks such as sending emails to a background process. Once the request has been dispatched it will process in the background instantly.

Extend the `WP_Async_Request` class:

```
Expand Down Expand Up @@ -57,6 +59,12 @@ Chaining is also supported:

### Background Process

Background processes work in a similar fashion to async requests but they allow you to queue tasks. Items pushed onto the queue will be processed in the background once the queue has been dispatched. Queues will also scale based on available server resources, so higher end servers will process more items per batch.

Health checks run by default every 5 minutes to ensure the queue is running when queued items exist. If the queue has failed it will be restarted.

Queues work on a first in first out basis, which allows additional items to be pushed to the queue even if it’s already processing.

Extend the `WP_Background_Process` class:

```
Expand Down

0 comments on commit 3703229

Please sign in to comment.