Open devery59 opened 10 months ago
\
Is the full error message just a path to the data class? Can I get the exact error message?
Is there any difference between python 3.9 version's temporal env and 3.11 version's temporal env?
None in our code, but Python may have changed how imports work between the two
I know if i use in my workflow like below...
So it appears in newer Python versions the sandbox importer can import your dataclass but in older Python versions you have to import it yourself
Minimal Reproduction
It may be easier with a full replication instead of just snippets, but I may have the idea here.
Regardless, I will see if I can investigate this. In the meantime, import the custom data class yourself as you have shown. Or upgrade to your Python version.
@cretz Thanks for reply!
Is the full error message just a path to the data class? Can I get the exact error message?
Yes error message just a path to the data class
Regardless, I will see if I can investigate this. In the meantime, import the custom data class yourself as you have shown. Or upgrade to your Python version.
Thanks for your comment! I expect specific reason of above issue. Let me know if there is another thought.
Is it possible to provide a standalone replication? Maybe alter https://github.com/temporalio/samples-python/blob/main/hello/hello_activity.py until you can replicate the failure? (feel free to separate out to multiple files)
What are you really trying to do?
I'm Using Temporal on EKS Cluster and I try to connect temporal in other application and run workflow. When I use custom @dataclass as return value of activity, "Failed decoding arguments" error has occured.
Describe the bug
Minimal Reproduction
This is my execution code.
This is my workflow code.
This is my activity code.
This is my custom dataclass code.
Environment/Versions
Additional context
I'm using python 3.9 version to test on EKS. But when i use python 3.11 version as my Base Image or python setting there is no issue. Is there any difference between python 3.9 version's temporal env and 3.11 version's temporal env? ( I checked pip list versions. requirements version is same)
I know if i use in my workflow like below...
Let me know what is stable python version when i use temporal cluster and is there any best way to use pattern like this?
Thanks for your all effort.