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

Emails not being sent every minute, and probably overlapping. #154

Open
lfcc1 opened this issue Jul 12, 2022 · 0 comments
Open

Emails not being sent every minute, and probably overlapping. #154

lfcc1 opened this issue Jul 12, 2022 · 0 comments

Comments

@lfcc1
Copy link

lfcc1 commented Jul 12, 2022

Hello, I have been using this plugin and it works fine.
However, recently my subscriber's number highly increased, generating this error:

Swift_TransportException: Expected response code 220 but got code "421", with message "421 4.3.2 The maximum number of concurrent server connections has exceeded a per-source limit, closing transmission channel.

When I send the newsletter to all my subscribers, I can see the emails "in queue" number going down almost 1 per second. I dont know why this is happening since I configured the task for everyMinute and without overlapping.

Plugin.php

    public function registerSchedule($schedule)
    {
        $memory = (int)Config::get('indikator.news::memory_limit');
        $schedule->command('queue:work --daemon --queue=newsletter --memory=' . $memory)->everyMinute()->withoutOverlapping();
    }

cronjob -e

* * * * *  path/to/october  && php artisan schedule:run >> /dev/null 2>&1

Any idea what could be causing that error?
Thank you

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

No branches or pull requests

1 participant