https://flyte.org logo
#ask-the-community
Title
# ask-the-community
f

Frank Shen

11/15/2022, 12:12 AM
Unfortunately, I got error:
Copy code
flytekit/core/type_engine.py", line 319, in get_literal_type
    f"Dataclass {t} should be decorated with @dataclass_json to be " f"serialized correctly"
AssertionError: Dataclass <class 'flytekit.core.resources.Resources'> should be decorated with @dataclass_json to be serialized correctly
I requested more resources inside the execute() method and that solved the problem.