I want to trace where the line of code print this ...
# flyte-support
f
I want to trace where the line of code print this msg error. I have try to search all project Flytekit with keyword 'doesn't match expected type', But it couldn't found anywhere in Flytekit. Can anyone have me this
d
Can you share the code?
It seems like type checking error
f
Copy code
from flytekit import task, workflow


@task
def a(input_a: str) -> str:
    return input_a

@task
def b(input_b: str) -> int:
    return len(input_b)

@task
def c(input_c1: str, input_c2: str) -> str:
    return input_c1 + str(input_c2)


# @workflow
# def my_wf_2(a: str = '123', b: str = '234') -> str:
#     output_a = a(input_a=a)
#     output_b = b(input_b=b)
#     output =  c(input_c1=output_a, input_c2=output_b)
#     return '123'
@workflow
def mywf() -> str:
    output_a = a(input_a='123')
    output_b = b(input_b='234')
    output = c(input_c1=output_a, input_c2=output_b)
    return output
@damp-lion-88352 That's right, my purpose is trace to where the line of code in Flyte print that error
This is type check error
d
You can use workflow compiler
Compile
These 2 words to search
I know it exists
I’ve seen it before
👀 1
f
@damp-lion-88352 I have search directly in that purple msg error in entire of Flytekit. But i just found
def pretty_print_grpc_error
is related to this print
is this msg report in Flytekit @damp-lion-88352
d
Search failed to compile workflow
👍 1
here
g
this is the error from propeller.
when you register a workflow, flyteadmin will use the compiler in the propeller to compile the workflow
f
thanks u