You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
This artisan short-schedule:run command runs the code:
protected function shortSchedule(ShortSchedule $schedule) {
$schedule->command('telegram:history')->everySecond(5)->withoutOverlapping();
}
And when I run the sudo supervisorctl stop short-scheduler command, then every 5 seconds a message pops up in the console:
Feb 26 13:17:32 messenger mariadbd[890306]: 2022-02-26 13:17:32 179 [Warning] Aborted connection N to db: 'test' user: 'test' host: 'localhost' (Got an error reading communication packets)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There is a scheduler that every 5 seconds gets the message history of each client from the telegram.
I use supervisorctl to start.
This artisan short-schedule:run command runs the code:
And when I run the sudo supervisorctl stop short-scheduler command, then every 5 seconds a message pops up in the console:
Feb 26 13:17:32 messenger mariadbd[890306]: 2022-02-26 13:17:32 179 [Warning] Aborted connection N to db: 'test' user: 'test' host: 'localhost' (Got an error reading communication packets)
Recommendations from this article are implemented https://dev.mysql.com/doc/refman/5.7/en/communication-errors.html
PS All executions in the created scheduler have been removed and processed. So it's definitely not a bug in the code.
Beta Was this translation helpful? Give feedback.
All reactions