WP-Cron tasks not being removed after running

Question

I have a cron event setup to send a text message to a user.

After changing the site to a new subdomain, it has been running every time the page has loaded – without the event being marked as completed. So has sent over 1000 text messages to a handful of users.

Using wp crontrol to debug, it only appears to be happening with the custom task I have setup for the text message. I am unable to delete the tasks, they just forever stay in queue, scheduled for (now)/the past.

They are not being remade every time the page loads, it is 100% the same tasks that are stuck in the past and can’t be removed – is there something that could’ve possibly broken during the change of subdomains?

It is using the wp_schedule_single_event function to schedule the event.

And it has been functioning perfectly for 2 years, only broke after moving the site to a subdomain.

0
, Jayme Brereton 3 years 2020-04-08T00:51:13-05:00 0 Answers 78 views 0

Leave an answer

Browse
Browse