Transaction commit not working for sub functions #34637
Replies: 5 comments 3 replies
-
Can you update to the latest 6.x version and see if the problem persists? |
Beta Was this translation helpful? Give feedback.
-
@driesvints Have updated the updated to 6.18.41. But still, the issue persists. Also, I am using 2 DB connections in the job could this cause this behavior? |
Beta Was this translation helpful? Give feedback.
-
Do you have the same problem when using |
Beta Was this translation helpful? Give feedback.
-
Same issue here. Has anyone come up with a fix? |
Beta Was this translation helpful? Give feedback.
-
i had the same issue, when the database table name is defined on the model (when the database table name is not default as Laravel expect) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
6.0.46.18.41Description:
A very weird issue is happening. I have a job running using supervisor with multiple workers. The jobs call a sub-function that creates a model and returns it. Other DB actions are being performed as well but sometimes the model which is created in sub-function is not written to DB. Other DB operations that are using the ID from the model and are being populated well, but the actual model entry is missing from DB.
Steps To Reproduce:
Code
entry created in anotherClass->create() is not written to DB but other models are written and contains the id from anotherClass->create(). This does not happen every time but sometimes it does. All tables types are InnoDB
Beta Was this translation helpful? Give feedback.
All reactions