littlehorse-enterprises / littlehorse

This repository contains the code for the LittleHorse Server, Dashboard, CLI, and Java/Go/Python SDK's. Brought to you by LittleHorse Enterprises LLC
https://littlehorse.dev/
Other
66 stars 7 forks source link

Java SDK Serialization Erorr Yields Timeout #891

Open coltmcnealy-lh opened 1 month ago

coltmcnealy-lh commented 1 month ago

If I have a LHTaskMethod as follows:

@LHTaskMethod("some-task")
public UUID returnSomeUUID() {
    return UUID.randomUUID();
}

I will observe the TaskRun go into the TIMEOUT state. That is because we fail to serialize the UUID properly. We already have a code in our TaskStatus proto that is for output serialization errors. When we fail to serialize the output, we should rethrn an LHTaskError to the server, rather than fail silently without a stacktrace, which is what we do right now.