WordPress / performance

Performance plugin from the WordPress Performance Group, which is a collection of standalone performance modules.
https://wordpress.org/plugins/performance-lab/
GNU General Public License v2.0
364 stars 99 forks source link

Create Background Processing Infrastructure: Create Perflab_Background_Process::time_exceeded method #494

Open jjgrainger opened 2 years ago

jjgrainger commented 2 years ago

Create a new Perflab_Background_Process::time_exceeded to calculate the total time used within the background process. This function checks the total time taken within the background process so that it can break the while loop 10 seconds before the server timeout limit is reached. The boolean value returned by the function will be filterable to allow other developers to modify the timeout limit.

Acceptance Criteria

felixarntz commented 2 years ago

@jjgrainger The ACs here LGTM, however this may also be slightly affected by https://github.com/WordPress/performance/issues/482#issuecomment-1224996357.

jjgrainger commented 2 years ago

@felixarntz this has been updated based on your comments on #482