<#57 [QUESTION]: How to set a directory path for a...
# flyte-github
a
#57 [QUESTION]: How to set a directory path for a task that generates report Issue created by debasisdwivedy Hi, Below is a code:
Copy code
@env.task(report=True)
async def task1():
    # Creating new tabs
    tab = flyte.report.get_tab("Task 1")
    tab.log("<p>Task 1 HTML log</p>")
    await flyte.report.flush.aio()
It tries to generate a report but i get an exception as below:
Copy code
RuntimeUserError: [Errno 2] No such file or directory: '/tmp/9vebunncm4atxzmlfzl9chl5r/report.html'
I am running the task with local context:
flyte.with_runcontext(mode="local")
The
with_runcontext
has
raw_data_path
and
run_base_dir
but it does not pass to the internal_ctx() which is tied to a task. In the task decorator/function
@env.task(report=True)
is could not find a way to pass a directory path. Is there a way to create a report at a particular location os choice? Regards, flyteorg/flyte-sdk