You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 3.15.3, the to-submit status was introduced for RUCSS table. When a row can't be sent to the SaaS (for any reasons, 401, unreachable API, etc...) the row remains in to-submit and is retried at the next cron interval. This can result in infinite loops for unauthorized users, or high CPU usage when a website can't reach the RUCSS API for instance, even if the feature is de-activated.
Expected behavior
If a 'to-submit' row can't be sent to the SaaS, then it should be set to a failed status.
To-submit jobs should not be processed if the RUCSS feature is not activated.
Acceptance Criteria
No regressions with the nominal behavior (no error case).
Force the failure of an API call from the plugin to the SaaS to register a job from a 'to-submit' row. The row should go to the status 'failed' with an error_message and error_code filled.
Activate the RUCSS feature and purge the RUCSS table, wait for some rows to be added in 'to-submit'. Deactivate the feature. The jobs in to-submit must remain in that state forever. No API call to the SaaS should be performed.
Suggestion
Add a check at the beginning of process_on_submit_jobs as in process_pending_jobs
Context
In 3.15.3, the to-submit status was introduced for RUCSS table. When a row can't be sent to the SaaS (for any reasons, 401, unreachable API, etc...) the row remains in
to-submit
and is retried at the next cron interval. This can result in infinite loops for unauthorized users, or high CPU usage when a website can't reach the RUCSS API for instance, even if the feature is de-activated.Expected behavior
failed
status.Acceptance Criteria
Suggestion
wp-rocket/inc/Engine/Optimization/RUCSS/Controller/UsedCSS.php
Lines 476 to 480 in cb55163
wp-rocket/inc/Engine/Optimization/RUCSS/Controller/UsedCSS.php
Line 1013 in cb55163
The text was updated successfully, but these errors were encountered: