From eaea07dd7aa106aa393580bba31ce6cd85ad702c Mon Sep 17 00:00:00 2001 From: Tyler Zupan Date: Fri, 22 Nov 2024 10:04:50 -0500 Subject: [PATCH] added local resource override logging --- block_cascade/decorators.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block_cascade/decorators.py b/block_cascade/decorators.py index 70e4c05..4f6fd3e 100644 --- a/block_cascade/decorators.py +++ b/block_cascade/decorators.py @@ -155,6 +155,8 @@ def remote_func(*args, **kwargs): # if running a flow locally ignore the remote resource, even if specified # necessary for running a @remote decorated task in a local flow if not via_cloud and no_resource_on_local: + prefect_logger.info("Not running in Prefect Cloud and no_resource_on_local=True." + "Because of this Cascade remote resource set to None and LocalExecutor is used.") resource = None # if no resource is passed, run locally