-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor URLValidationCron
to schedule events to validate individual URLs
#5750
Comments
Per @schlessera: We can rather use a queue instead of staggering the scheduled events. We can have a scheduled event that runs every tick, and if there is a something in the queue, then validate. We should also have better logging. |
URLValidationCron
to schedule events to validate individual URLs
QA Passed
Testing individual URLs was also completed successfully. Noticed Hourly Cron event for
|
Feature description
As noted in #5515 (comment):
In other words, this would be similar to
SavePostValidationEvent
in which one URL is scheduled for validation. In fact, that class could be refactored to pass the URL as the schedule argument as opposed to the$post_id
. It could then be used for scheduling validation after editing a post as well as for individually re-validating the sample set of URLs.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
amp_url_validation_queue
).URLValidationCron
service should enqueue the URLs returned by\AmpProject\AmpWP\Validation\ScannableURLProvider::get_urls()
into this stored option.Conditional
from theURLValidationCron
service (and thus remove theamp_temp_validation_cron_tasks_enabled
filter).QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: