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
I recently encountered an issue with large data. A workflow infinitely looped. The first Activity was started and after execution the workflow just dropped out. Any code after that never got executed. Then the workflow restarts. No logs, no messages, no failed state. Just completed everything without anything happening.
Well... The logging failed because the data size produced by the activity exceeded the limit of the TEXT column in the workflow_logs table of the database, which led to the application not functioning as expected without any reasonable logs. I manually altered the database schema to use LONGTEXT to resolve the issue.
I would like to suggest implementing a soft limit for the size of data that is written to the database. If the log exceeds the max characters of TEXT, the system should at least log a warning indicating that the database write could fail due to size constraints beforehand.
Alternatively, a hard limit could be enforced, where an exception is thrown if the data exceeds the maximum allowed size. This would help to prevent unexpected behavior.
Maybe you could also consider using LONGTEXT instead of TEXT for columns that may store large data.
Anyways I mostly do leave this here to help folks with a similar problem.
Thanks for your great package!
This discussion was converted from issue #188 on February 21, 2025 03:55.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
Uh oh!
There was an error while loading. Please reload this page.
-
I recently encountered an issue with large data. A workflow infinitely looped. The first Activity was started and after execution the workflow just dropped out. Any code after that never got executed. Then the workflow restarts. No logs, no messages, no failed state. Just completed everything without anything happening.
Well... The logging failed because the data size produced by the activity exceeded the limit of the TEXT column in the workflow_logs table of the database, which led to the application not functioning as expected without any reasonable logs. I manually altered the database schema to use LONGTEXT to resolve the issue.
I would like to suggest implementing a soft limit for the size of data that is written to the database. If the log exceeds the max characters of TEXT, the system should at least log a warning indicating that the database write could fail due to size constraints beforehand.
Alternatively, a hard limit could be enforced, where an exception is thrown if the data exceeds the maximum allowed size. This would help to prevent unexpected behavior.
Maybe you could also consider using LONGTEXT instead of TEXT for columns that may store large data.
Anyways I mostly do leave this here to help folks with a similar problem.
Thanks for your great package!
Beta Was this translation helpful? Give feedback.
All reactions