Replies: 1 comment 3 replies
-
This seems to be the expected behaviour: 94dbf76 Moving to Ideas |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
11.x
PHP Version
8.4.x
Database Driver & Version
Mysql, 8.4
Description
Then running
artisan queue:work
, and using databasesticky
option enabled, once database switches to the write connection it sticks for all future jobs. This is inefficient and creates additional load for the master database.Have not tested, but maybe same issue occurs with Cronjobs and Laravel Octane if new process was not created?
Steps To Reproduce
Reproducing is quite simple, you only need to create two jobs, one for writing and one for reading and dumping the log of the connection used.
Beta Was this translation helpful? Give feedback.
All reactions