Muhammad Husnain
03/13/2023, 9:22 AMprefect 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?Jacob Danovitch
03/13/2023, 3:07 PMRayTaskRunner
with an AnyscaleJob
infra block from here https://github.com/anyscale/prefect-anyscale