Skip to content

Commit edf31a3

Browse files
dd32claude
andcommitted
Update README with installation, usage, and development instructions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c346306 commit edf31a3

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,42 @@
11
# wpcli-cron-concurrent
2-
Runs WordPress cron tasks concurrently via wp-cli.
2+
3+
A WP-CLI package that runs WordPress cron tasks concurrently instead of sequentially.
4+
5+
By default, `wp cron event run --all` processes each task one at a time. This package spawns parallel subprocesses so multiple cron hooks execute simultaneously, with a live progress display showing each task's status and output.
6+
7+
## Installation
8+
9+
```bash
10+
wp package install dd32/wpcli-cron-concurrent
11+
```
12+
13+
## Usage
14+
15+
```bash
16+
# Run all pending cron tasks concurrently (default: 5 at a time)
17+
wp cron-concurrent run
18+
19+
# Run only hooks matching a substring
20+
wp cron-concurrent run --filter=woocommerce
21+
22+
# Limit to 3 concurrent tasks
23+
wp cron-concurrent run --concurrent=3
24+
```
25+
26+
## Options
27+
28+
| Option | Description | Default |
29+
|---|---|---|
30+
| `--filter=<string>` | Only run hooks whose name contains this string | _(all hooks)_ |
31+
| `--concurrent=<n>` | Maximum number of tasks to run at the same time | 5 |
32+
33+
## Development
34+
35+
Requires Node.js (for wp-env) and Docker.
36+
37+
```bash
38+
npm install
39+
npm run env:start
40+
npm test
41+
npm run env:stop
42+
```

0 commit comments

Comments
 (0)