I'm trying to debug a flow running Prefect server ...
# prefect-server
a
I'm trying to debug a flow running Prefect server but all the logs except for tasks start and end (e.g.
Task 'my_task': Starting task run...
and
Task 'my_task' :Finished task run for task with final state: 'Success'
) are not showing up. I'm trying to log info to help debugging within tasks like so
Copy code
@task
def my_task(x):
    logger = prefect.context.get("logger")
    <http://logger.info|logger.info>(f"Task input: {x}")

    if isinstance(x, str):
        logger.error("Not good. Input x is a string")
        raise ValueError
    return x
but nothing shows up in the logs on the server UI. Any ideas what I can do so that logs show up?
k
Hey @Alex Furrier, what executor are you using? Dask?
Is this for a specific flow or happens across flows?
a
Yep, Dask executor. It seems to happen across flows when executing on Dask but not on local execution
k
Does it happen to other flows with DaskExecutor?