See my post here: Background task cannot return a media object?
I’d expect serialisation of the background task result to be the same as regular (de)serialisation between client and server. So the behaviour mentioned above tripped me.
I know I could work around this by using a database, but that feels clumsy and slow.
TIA