• Resolved app1e5auce

    (@app1e5auce)


    Starting a month ago, a client of mine using The Events Calendar has had repeated issues with the wp_shepherd_tec_tasks database table running away to 100k+ rows and crippling their website.

    Upon truncating the table and refreshing any page on their website, I would observe ~20 lines being added to the table on each refresh.

    I identified that the shepherd_tec_process_task action was responsible for cleaning up this table (I think), so I dug into that more. It looks like this task typically runs each day to clean up the table, but between 2025-09-29 and 2025-10-06, the task stopped running and the database table inflated.

    On 09-29, the last time the task ran successfully, the log was this:

        2025-09-28 22:41:31 +0000
    action created
    2025-09-28 22:41:31 +0000
    shepherd_tec||53||created||info||{"message":"Task 53 created.","context":{"current_try":0}}
    2025-09-29 04:42:42 +0000
    action started via WP Cron
    2025-09-29 04:42:42 +0000
    shepherd_tec||53||started||info||{"message":"Task 53 starting.","context":{"current_try":0}}
    2025-09-29 04:42:42 +0000
    shepherd_tec||53||finished||info||{"message":"Task 53 finished.","context":{"current_try":0}}
    2025-09-29 04:42:42 +0000
    action complete via WP Cron

    So, it does not look like the task failed. It looks like the problem was that a new shepherd_tec_process_task was not scheduled after the previous task completed.

    To resolve this problem (on 10-06), I truncated the table, and deactivated/reactivated the events calendar plugin. This resolved the issue. A new shepherd task was created by the plugin. However I cannot monitor this each day and go through these steps every time the task fails to reschedule itself.

    What can I do on my end to resolve this? Even if I have to make my own cron task on the server, I can do that, I just need to know the most future-proof way to handle that. I thought about making my own task to truncate the table, but I’d really prefer some way to check if the plugin’s shepherd task was rescheduled correctly, and if not, manually reschedule it via code.

    Or maybe it’s a known bug that could be resolved in a future plugin version. I do not know. Just looking for thoughts from other people in the community.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Dimitris Pantazis

    (@dpantazis)

    Hey @app1e5auce,

    This is a known issue. We are working towards resolving it within the shepherd library itself.

    Thank you for your report. Me or a colleague of mine is going to update this thread when the fix is out.

    Thank you,
    Dimi

    Thread Starter app1e5auce

    (@app1e5auce)

    Hey @dpantazis,

    Thank you for replying so quickly! Is there an ETA on this fix or anywhere online where I can track the issue progress?

    Plugin Author Dimitris Pantazis

    (@dpantazis)

    @app1e5auce there is a release planned for them, but unfortunately we don’t have a definitive date.

    Here is a good place to follow along with the release of the fixes.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It looks like this thread has been inactive for a while, so I’ll go ahead and close it for now. Rest assured, we will update this thread once the fix is out.

    If you have any other questions or concerns, please don’t hesitate to reopen this thread or start a new one.

    rain321

    (@rain321)

    Same issue. High CPU utilization. Slow quering issue via query monitoring. Quering too many times – in the order of 7000. I am on shared server so unable to create any cron jobs based on comment above. Please advise for updated plugin. My website is suspended due to this.

    23083411 | my db name | localhost | my db name | Query | 0 | Statistics | SELECT * FROM sqba_shepherd_tec_tasks WHERE args_hash = ‘shepherd_tidy_0c5564376533f4104430960ec7 | 0.000 |

    Plugin Support Darian

    (@d0153)

    Hi @app1e5auce

    For us to follow the WordPress Forum guidelines, please open a new support thread and include all the relevant details about the issue, as you mentioned above.

    Kindly reference this thread in your new post so we can easily track the context and continue assisting you there. We’ll address your concern from the new thread.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.