https://prefect.io logo
Title
m

Muhammad Husnain

03/13/2023, 9:22 AM
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
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

Jacob Danovitch

03/13/2023, 3:07 PM
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