globus / globus-compute

Globus Compute: High Performance Function Serving for Science
https://www.globus.org/compute
Apache License 2.0
148 stars 47 forks source link

funcx 0.2.0 always converts tuple results to list #424

Closed ZhuozhaoLi closed 3 years ago

ZhuozhaoLi commented 3 years ago

Currently if one submits a function that returns a tuple, it will convert the result to a list. For exmaple

def hello():
    import platform
    return (1,2,platform.uname())

the returned result would be:

[1, 2, ['Linux', 'thetalogin6', '4.12.14-197.75-default', '#1 SMP Tue Dec 1 12:18:41 UTC 2020 (b3ff9f6)', 'x86_64', 'x86_64']]

Still investigating the reason

ZhuozhaoLi commented 3 years ago

if removing the json serializer, then this would be back to normal. This is because the serialization try method was fix in commit 992e59fd61657322f710cfa043e63d0b084f7751, and json was the first serialization method tried