Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <pingsutw@apache.org>
  • Loading branch information
pingsutw committed Feb 10, 2022
1 parent 7629730 commit 7a2320b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/flytekit-aws-batch/flytekitplugins/awsbatch/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def __init__(self, task_config: AWSBatchConfig, task_function: Callable, **kwarg
super(AWSBatchFunctionTask, self).__init__(
task_config=task_config, task_type=self._AWS_BATCH_TASK_TYPE, task_function=task_function, **kwargs
)
self._run_task = PythonFunctionTask(task_config=None, task_function=task_function)
self._task_config = task_config

def get_custom(self, settings: SerializationSettings) -> Dict[str, Any]:
Expand All @@ -66,9 +65,9 @@ def get_command(self, settings: SerializationSettings) -> List[str]:
"{{.rawOutputDataPrefix}}",
"--is-aws-batch-single-job",
"--resolver",
self._run_task.task_resolver.location,
self.task_resolver.location,
"--",
*self._run_task.task_resolver.loader_args(settings, self._run_task),
*self.task_resolver.loader_args(settings, self),
]

return container_args
Expand Down

0 comments on commit 7a2320b

Please sign in to comment.