Notification not sent after batch size
-
Total subscribers are 111. Badge size is 30. When I send a notification, it has been sent only to 28 users and the notification job is still running. Is it something related to wp-cron?
-
Hello! Probably yes, however it’s still worth checking the php error logs to see if there’s anything related there. Please keep us posted!
@iasexpress any update on this? Keep in mind we’ve released a new version that allows you to look at the logs. Please let us know if you find something suspicious ??
Otherwise if no answer we will mark it as solved. Thank you!
Closing this due to inactivity
I have the same problem from the beginning. Sometimes they are sent to all users. Sometimes it stops, in a different place. And stay with running status.
Date: 2021-07-05 16:21:32 Status: running Stats: Total: 3479 Succeeded: 395 Execution details: 400 sent out of 3479 Batch size: 100 Duration: 02h:51m:05s
I can’t figure out what’s going on. I have no other problems with anything else
@kaldata please enable the server logs in Perfecty > Settings > Enable Server Logs, and let us know what error you can see in Perfecty > Logs. The error you mention is a bit different to the one reported here, as you’ve at least executed a few batches. Looks like something else is causing this, I suspect your server runs out of memory in a batch size of 100.
All the options are documented here: https://docs.perfecty.org/wp/configuration/#6-self-hosted-server
-
This reply was modified 3 years, 7 months ago by
Perfecty.
This also happens with batch size 30. I will turn on Error Logs and I’ll write again.
Today successfully sent two notifications to all users. And the third:
Date: 2021-07-06 16:44:30 Status: running Stats: Total: 3559 Succeeded: 984 Execution details: 1000 sent out of 3559 Batch size: 100 Duration: 02h:48m:58s
I don’t know why it does it, but it does it from the beginning as I installed it a month ago. Sometimes it sends to everyone sometimes it just stops somewhere. I don’t know if it breaks if you edit and save another article.
Here are the last rows of server logs:
2021-07-06 16:51:07 | INFO | Next ticker scheduled at: 2021-07-06 16:52:07 2021-07-06 16:51:04 | INFO | Cron check ticked 2021-07-06 16:50:03 | INFO | Next ticker scheduled at: 2021-07-06 16:51:03 2021-07-06 16:50:03 | INFO | Next ticker scheduled at: 2021-07-06 16:51:03 2021-07-06 16:50:02 | INFO | Cron check ticked 2021-07-06 16:49:02 | INFO | Next ticker scheduled at: 2021-07-06 16:50:02 2021-07-06 16:49:02 | INFO | Next ticker scheduled at: 2021-07-06 16:50:02 2021-07-06 16:49:00 | INFO | Cron check ticked 2021-07-06 16:47:59 | INFO | Cron check ticked 2021-07-06 16:47:59 | INFO | Next ticker scheduled at: 2021-07-06 16:48:59 2021-07-06 16:47:18 | DEBUG | Notification sent successfully 2021-07-06 16:47:17 | INFO | Sending notification to 1 users 2021-07-06 16:47:17 | DEBUG | {"title":"*****.com","body":"Congratulations, you're now subscribed!","icon":"https:\/\/www.****8.com\/wp-content\/uploads\/2021\/07\/*****.jpg","image":"","require_interaction":false,"extra":{"url_to_open":"https:\/\/www.******.com"}} 2021-07-06 16:47:17 | DEBUG | Enqueuing notification to user id=5489 2021-07-06 16:46:58 | INFO | Next ticker scheduled at: 2021-07-06 16:47:58 2021-07-06 16:46:57 | INFO | Cron check ticked 2021-07-06 16:45:53 | DEBUG | Notification sent successfully 2021-07-06 16:45:53 | DEBUG | Notification sent successfully 2021-07-06 16:45:53 | DEBUG | Notification sent successfully 2021-07-06 16:45:53 | DEBUG | Notification sent successfully
Hi @kaldata we will include some changes related to how we handle the batches so that it is more stable in different environments. As far as we know, it’s working fine in other environments that send more than 11.000 notifications. However if you still experience this, and if you find something suspicious that will help us to identify what’s happening please let us know ??
Hi @kaldata we’re trying to identify the problem, could you please check if disabling the cron checker it works?
https://github.com/perfectyorg/perfecty-push-wp/issues/86
…please comment the 310 line in includes/class-perfecty-push.php using the plugin editor, go to Plugins > Plugin editor > Select Perfecty Push Notifications.
includes/class-perfecty-push.php:
// $this->loader->add_action( 'admin_init', $plugin_admin, 'check_cron' );
This will disable the cron checker, which we suspect is having conflicts with the notification job scheduler.
-
This reply was modified 3 years, 7 months ago by
Perfecty.
I think this also happened in the versions before the cron checker option appeared. I will try now and write about the result later
Yesterday and today I successfully sent a total of 6 notifications without a problem. With cron checker off. I don’t know if it’s luck or that fixed the problem.
Please let us know if it happens again, so that we know if it was or not the root cause. Thank you!
Yes, if it happens I will write again. A few days passed and I wrote to let you know that everything is working at the moment and I’m watching it. In a few days I will write again with the results.
Today it stopped again ??
Date: 2021-07-09 16:12:17 Status: running Stats: Total: 3729 Succeeded: 193 Execution details: 200 sent out of 3729 Batch size: 100 Duration: 00h:57m:27s
Ok, thanks for letting us know. We’re changing how we process them, and will release a new update as soon as it’s ready ??
-
This reply was modified 3 years, 7 months ago by
- The topic ‘Notification not sent after batch size’ is closed to new replies.