Skip to content

Commit

Permalink
added local resource override logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerzupan committed Nov 22, 2024
1 parent b03a845 commit eaea07d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions block_cascade/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eaea07d

Please sign in to comment.