Skip to content
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

Action scheduler in comments #1044

Open
agenceKanvas opened this issue Mar 19, 2024 · 1 comment
Open

Action scheduler in comments #1044

agenceKanvas opened this issue Mar 19, 2024 · 1 comment
Labels
priority: normal The issue/PR is normal priority—not many people are affected or there’s a workaround, etc. type: bug The issue is a confirmed bug.

Comments

@agenceKanvas
Copy link

Hi !

Since around a week or two, I have a LOT of comments from AS appearing in the admin comments pages.
Same as #446

I didn't had this problem before.
I've hidden them using pre_get_comments filter but I'd like to stop them being saved because it's generating a lot of comments.

I've tried running as_enqueue_async_action( 'action_scheduler/cleanup_wp_comment_logs' ); in wp shell. doing that, I have this in my scheduled actions :
Capture d’écran 2024-03-19 à 11 47 00
if I click on RUN, the event is then marked as failed. I don't see any error in logs so it's hard to debug that.

Any advice ? Thanks !!!

@vedanshujain
Copy link
Contributor

Hey @agenceKanvas , this shouldn't be happening ideally, can you share an screenshot on what these comments actually are?

Also, for the cleanup action, can you try running it via CLI and see if there are more errors, you can run it via wp action-scheduler run --hooks='action_scheduler/cleanup_wp_comment_logs' or wp eval "do_action('action_scheduler/cleanup_wp_comment_logs');

@vedanshujain vedanshujain added type: bug The issue is a confirmed bug. priority: normal The issue/PR is normal priority—not many people are affected or there’s a workaround, etc. labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: normal The issue/PR is normal priority—not many people are affected or there’s a workaround, etc. type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

2 participants