acoustic-carpenter-78188
07/21/2023, 4:48 PMFLYTE_SDK_RICH_TRACEBACKS
which, when set to 0, disables rich tracebacks.
Setting this environment variable turns this
image▾
image▾
RichHandler
is added to the flytekit logger which also produces output in rich format. When executing this workflow
from flytekit import task, workflow
@task
def train():
raise Exception("This is a test")
@workflow
def wf():
train()
if __name__ == "__main__":
wf()
with FLYTE_SDK_RICH_TRACEBACKS=0 python test.py
, the output still looks as follows:
Screenshot_2023-07-21_at_18_44_25▾
acoustic-carpenter-78188
07/21/2023, 5:36 PM