Hi all, This is a duplicate query that I posted la...
# ask-community
m
Hi all, This is a duplicate query that I posted last week as well. Appreciate any pointers on this Hey community, Is it possible to get the
prefect logger
inside a
task runner
? I'm using the
RayTaskRunner
and I've defined a custom class using the following
Copy code
class AnyscaleTaskRunner(RayTaskRunner):
def __init__(self, **init_kwargs: Any):
    some code
with Prefect flows and I have some information that is only available within the
AnyscaleTaskRunner
class. Is there any way that I can access the prefect context or the prefect logger in the
AnyscaleTaskRunner
class that I created?
j
Not an answer, but it looks like Anyscale recommends using the
RayTaskRunner
with an
AnyscaleJob
infra block from here https://github.com/anyscale/prefect-anyscale