Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Dec 3, 2024
1 parent f07f01b commit 935be5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions flytekit/core/base_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,6 @@ def dispatch_execute(
logger.info(f"Invoking {self.name} with inputs: {native_inputs}")
with timeit("Execute user level code"):
try:
if hasattr(self, "run"):
self.run() # it will start vscode server
native_outputs = self.execute(**native_inputs)
except Exception as e:
if is_local_execution:
Expand Down
2 changes: 1 addition & 1 deletion flytekit/interactive/vscode_lib/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def __init__(
config=config,
)

def run(self, *args, **kwargs):
def execute(self, *args, **kwargs):
ctx = FlyteContextManager.current_context()
logger = flytekit.current_context().logging
ctx.user_space_params.builder().add_attr(
Expand Down

0 comments on commit 935be5c

Please sign in to comment.