Giacomo Chiarella
11/27/2024, 4:11 PMwith prefect.get_client() as c:
logs = await c.read_logs(
LogFilter(task_run_id={"any_": [task.id]}, level={"ge_": "info"})
)
if I want info and errors how should I write the filter?
LogFilter(task_run_id={"any_": [task.id]}, level={"ge_": "info"})
or
LogFilter(task_run_id={"any_": [task.id]}, level={"le_": "info"})
and if task is the task variable assigned with task = my_task.submit(…)
, how should I get the task id?