Hi team! I tried to register a workflow by `flytec...
# flyte-support
h
Hi team! I tried to register a workflow by
flytectl register
in flytekit v1.14.0 (with messagepack feature), but it fail by the following logs, could someone point me out what is the direction for debugging?
Copy code
Error 0: Code: MismatchingTypes, Node Id: n1, Description: Variable [registration] (type [simple:BINARY]) doesn't match expected type [simple:STRUCT  metadata:{fields:{key:"additionalProperties"  value:{bool_value:false}}  fields:{key:"properties"  value:{struct_value:{fields:{key:"model"  value:{struct_value:{fields:{key:"additionalProperties"  value:{bool_value:false}}  fields:{key:"properties"  value:{struct_value:{fields:{key:"value"  value:{struct_value:{fields:{key:"type"  value:{string_value:"string"}}}}}}}}  fields:{key:"required"  value:{list_value:{values:{string_value:"value"}}}}  fields:{key:"title"  value:{string_value:"ModelName"}}  fields:{key:"type"  value:{string_value:"object"}}}}}  fields:{key:"modules"  value:{struct_value:{fields:{key:"items"  value:{struct_value:{fields:{key:"type"  value:{string_value:"string"}}}}}  fields:{key:"type"  value:{string_value:"array"}}}}}}}}  fields:{key:"required"  value:{list_value:{values:{string_value:"model"}  values:{string_value:"modules"}}}}  fields:{key:"title"  value:{string_value:"WorkflowRegistration"}}  fields:{key:"type"  value:{string_value:"object"}}}  annotation:{annotations:{fields:{key:"cache-key-metadata"  value:{struct_value:{fields:{key:"serialization-format"  value:{string_value:"msgpack"}}}}}}}  structure:{dataclass_type:{key:"model"  value:{simple:STRUCT  metadata:{fields:{key:"additionalProperties"  value:{bool_value:false}}  fields:{key:"properties"  value:{struct_value:{fields:{key:"value"  value:{struct_value:{fields:{key:"type"  value:{string_value:"string"}}}}}}}}  fields:{key:"required"  value:{list_value:{values:{string_value:"value"}}}}  fields:{key:"title"  value:{string_value:"ModelName"}}  fields:{key:"type"  value:{string_value:"object"}}}  annotation:{annotations:{fields:{key:"cache-key-metadata"  value:{struct_value:{fields:{key:"serialization-format"  value:{string_value:"msgpack"}}}}}}}  structure:{dataclass_type:{key:"value"  value:{simple:STRING}}}}}  dataclass_type:{key:"modules"  value:{collection_type:{simple:STRING}}}}] |
The
pyflyte -c serialize workflows
can generate the pb, but I guess sth wrong about the outcome, making the workflow fail to register.
More context: I saw the pb file in the workflow file is:
Copy code
inputs {
      var: "sweep_configuration"
      binding {
        scalar {
          binary {
            value: "\202\246method\244grid\252parameters\204\255learning_rate\201\246values\223\313?\271\231\231\231\231\231\232\313?\323333334\313?\340\000\000\000\000\000\000\251max_depth\201\246values\223\003\004\005\254n_estimators\201\246values\222\005\024\273nested.param.example_unused\201\246values\221\302"
            tag: "msgpack"
          }
        }
      }
    }
However the pb task file is:
Copy code
variables {
        key: "sweep_configuration"
        value {
          type {
            simple: STRUCT
            annotation {
              annotations {
                fields {
                  key: "cache-key-metadata"
                  value {
                    struct_value {
                      fields {
                        key: "serialization-format"
                        value {
                          string_value: "msgpack"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
          description: "sweep configuration. you can check the format in wandb\'s [documentation](<https://docs.wandb.ai/guides/sweeps/define-sweep-configuration>)."
        }
      }
c
@helpful-van-10149 what version is your backend?
h
Thanks @curved-petabyte-84246! I was able to resolve this by updating propeller to v1.14.0