Automattic / Automattic/Cron-Control

CLI feature: Show which jobs are currently utilizing a8c_cron_control_concurrent_event_whitelist

Open
#300 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
134
Forks
26
Avg merge
3m
Merged PRs (30d)
1

Description

A WP-CLI command like `wp cron-control show-allowed-concurrent` would be handy to show which jobs are currently utilizing the filter. It would be helpful to aggregate and display that data when debugging stale queues.

Currently to find out, either need to search codebase for `a8c_cron_control_concurrent_event_whitelist` (which can get cumbersome on sites that use multiple repos), or run the filter to get the output with `wp shell`:

```
# wp shell
wp> apply_filters( 'a8c_cron_control_concurrent_event_whitelist', [] );
=> array(2) {
...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.