@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.
If I have a
LHTaskMethod
as follows:I will observe the
TaskRun
go into theTIMEOUT
state. That is because we fail to serialize theUUID
properly. We already have a code in ourTaskStatus
proto that is for output serialization errors. When we fail to serialize the output, we should rethrn anLHTaskError
to the server, rather than fail silently without a stacktrace, which is what we do right now.