Skip to content

Commit

Permalink
Don't handle dynamic execution scope
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Graetz <fabiograetz@googlemail.com>
  • Loading branch information
fg91 committed Apr 27, 2023
1 parent 28ade30 commit 27fcb29
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,7 @@ def execute(self, **kwargs) -> Any:
"""
from flytekit.exceptions import scopes as exception_scopes

if self.execution_mode == self.ExecutionBehavior.DEFAULT:
return exception_scopes.user_entry_point(self._execute)(**kwargs)
elif self.execution_mode == self.ExecutionBehavior.DYNAMIC:
return self.dynamic_execute(self._execute, **kwargs)
return exception_scopes.user_entry_point(self._execute)(**kwargs)

def get_custom(self, settings: SerializationSettings) -> Optional[Dict[str, Any]]:
if self.task_config.nnodes == 1:
Expand Down

0 comments on commit 27fcb29

Please sign in to comment.