Skip to content

Commit eae60b4

Browse files
committed
Assigned java gateway return value avoid call many time in single task
1 parent 565ea0c commit eae60b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/tasks

dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/tasks/dependent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ def get_code_from_gateway(self) -> Dict:
167167
else:
168168
gateway = launch_gateway()
169169
try:
170-
return gateway.entry_point.getDependentInfo(*self.code_parameter)
170+
self._code = gateway.entry_point.getDependentInfo(*self.code_parameter)
171+
return self._code
171172
except Exception:
172173
raise PyDSJavaGatewayException("Function get_code_from_gateway error.")
173174

0 commit comments

Comments
 (0)