Hello,
Does anyone know if there is a de-facto limit to the length of string that can be stored in the task_kwargs column of the TaskResult table? My understanding is that the column is an nvarchar(max) and should theoretically have a length of up to ~2 billion characters.
We’re using the TaskResult table to store task calls that will need to be picked up later by a periodic beat task. These tasks originate as service calls. We’ve observed that, in cases where the passed JSON is very large, the string representation of the JSON that is stored in task_kwargs is “abbreviated” (as opposed to truncated).
Example:
Instead of task_kwargs being like this:
“{‘key1’: ‘value1’, <many key/value pairs>, ’keyN’: ’valueN‘}”
It looks like this:
“{‘key1’: ‘value1’, <many key/value pairs>, ’keyX’: ’valueX‘, ‘key…’,…}” (It literally contains the “…” before the curly brace)
Is this intentional and we need to re-think our approach?
Thanks!