Unfortunately, I got error: ```flytekit/core/type_...
# ask-the-community
f
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.
119 Views