Skip to content

Unexpected behavior of workflows created form cronworkflows #6670

Answered by kobejn-jb
kobejn-jb asked this question in Q&A
Discussion options

You must be logged in to vote

@sarabala1979 Ok, I've found the cause of this problem. It's in workflow/controller/estimation/estimator_factory.go:

func (f *estimatorFactory) NewEstimator(wf *wfv1.Workflow) (Estimator, error) {
        defaultEstimator := &estimator{wf: wf}
        for labelName, indexName := range map[string]string{
                common.LabelKeyWorkflowTemplate:        indexes.WorkflowTemplateIndex,
                common.LabelKeyClusterWorkflowTemplate: indexes.ClusterWorkflowTemplateIndex,
                common.LabelKeyCronWorkflow:            indexes.CronWorkflowIndex,
        } {
                labelValue, exists := wf.Labels[labelName]
                if exists {

This part of code depends on w…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@sarabala1979
Comment options

@kobejn-jb
Comment options

@kobejn-jb
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kobejn-jb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants