We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5babb7 commit eefded8Copy full SHA for eefded8
pkg/pipeline/CiHandler.go
@@ -1141,7 +1141,11 @@ func (impl *CiHandlerImpl) UpdateWorkflow(workflowStatus v1alpha1.WorkflowStatus
1141
savedWorkflow.Status = status
1142
}
1143
savedWorkflow.PodStatus = podStatus
1144
- savedWorkflow.Message = message
+
1145
+ // NOTE: we are doing this for a quick fix where ci pending message become larger than 250 and in db we had set the charter limit to 250
1146
+ if len(message) > 250 {
1147
+ savedWorkflow.Message = message[:250]
1148
+ }
1149
if savedWorkflow.ExecutorType == pipelineConfig.WORKFLOW_EXECUTOR_TYPE_SYSTEM && savedWorkflow.Status == executors.WorkflowCancel {
1150
savedWorkflow.PodStatus = "Failed"
1151
savedWorkflow.Message = TERMINATE_MESSAGE
0 commit comments