Underpin-WP / underpin-plugin-boilerplate

7 stars 1 forks source link

Make it possible for batch process to run as a background or foreground task via WP Cron #32

Closed alexstandiford closed 3 years ago

alexstandiford commented 4 years ago

It would be incredibly useful if the batch processor could be configured to run through WP Cron instead of inside a batch process notice.

Ideally, this would be something that either:

  1. Sent a notice that informed the admin that a batch process is running in the background. Offer a way to switch it to a process with a notice.
  2. Sent a batch process notice with progress bar like it does now, but have a way to click a link and switch it to a background process.

The default would probably be set in the class. This would also require some re-thinking on how these classes are structured. Progress would probably need to be saved in the options table, or something.

alexstandiford commented 3 years ago

Resolved via https://github.com/Underpin-WP/background-process-loader