fix: recover run runtime state and logs
This commit is contained in:
@@ -69,6 +69,12 @@ func ValidateRunLifecycleReport(report domain.RunLifecycleReport) error {
|
||||
violations = appendProgressViolations(violations, report.Progress)
|
||||
violations = appendMessageLength(violations, "message", report.Message)
|
||||
violations = appendMessageLength(violations, "errorCode", report.ErrorCode)
|
||||
if report.ManagedProcessID != "" && report.ObservationSeq == 0 {
|
||||
violations = append(violations, "observationSeq is required with managedProcessId")
|
||||
}
|
||||
if report.ObservationSeq > 0 && report.ManagedProcessID == "" {
|
||||
violations = append(violations, "managedProcessId is required with observationSeq")
|
||||
}
|
||||
if len([]byte(report.ExecutionResult.Content)) > maxJobChannelMessageLength*256 {
|
||||
violations = append(violations, "executionResult.content is too large")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user