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

message_get_purgeable_by_type() returns NULL breaking entire cron #195

Open
andrewbelcher opened this issue Jun 29, 2017 · 1 comment
Open
Labels

Comments

@andrewbelcher
Copy link

message_cron() calls message_get_purgeable_by_type() with the following:

$purge_messages += message_get_purgeable_by_type(...)

This is called multiple times, with $purge_limit being reduced as results are returned. However, the return if $purge_limit ever gets to zero is:

function message_get_purgeable_by_type(&$purge_limit, $message_type_name, $purge_settings) {
  if ($purge_limit <= 0) {
    return;
  }

This causes a fatal error, killing the cron and preventing anything subsequent (including all queue processing) to never run.

@jacobembree
Copy link

This is a duplicate of #185.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants