Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 1f92a80

Browse files
committed
feat: draft branch can be merged with changes from git
1 parent 1fa7a7d commit 1f92a80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

workspace-manager/src/main/kotlin/org/modelix/workspace/manager/KubernetesJobTask.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package org.modelix.workspace.manager
33
import io.kubernetes.client.openapi.apis.BatchV1Api
44
import io.kubernetes.client.openapi.models.V1Job
55
import io.kubernetes.client.openapi.models.V1Toleration
6+
import io.kubernetes.client.util.Yaml
67
import kotlinx.coroutines.CoroutineScope
78
import kotlinx.coroutines.delay
89
import kotlinx.coroutines.withTimeout
@@ -50,7 +51,9 @@ abstract class KubernetesJobTask<Out : Any>(scope: CoroutineScope) : TaskInstanc
5051
break
5152
}
5253
}
53-
checkNotNull(tryGetResult()) { "Job finished without producing the expected result" }
54+
checkNotNull(tryGetResult()) {
55+
"Job finished without producing the expected result. Status: ${findJob()?.status?.let { Yaml.dump(it) }}"
56+
}
5457
}
5558

5659
private suspend fun createJob() {

0 commit comments

Comments
 (0)